From e89a7747b86243b9b8c41cb4de4c1443dacb386d Mon Sep 17 00:00:00 2001 From: "cdn@chromium.org" Date: Thu, 22 Mar 2012 18:01:50 +0000 Subject: [PATCH] Unregister waits when a client shuts down so that no further callback events can fire for that client. BUG=117890 TEST=N/A Review URL: https://breakpad.appspot.com/365001 git-svn-id: http://google-breakpad.googlecode.com/svn/trunk@936 4c0a9323-5329-0410-9bdc-e9ce6186880e --- src/client/windows/crash_generation/crash_generation_server.cc | 1 + 1 file changed, 1 insertion(+) diff --git a/src/client/windows/crash_generation/crash_generation_server.cc b/src/client/windows/crash_generation/crash_generation_server.cc index 61af1b2d..b180b2c2 100644 --- a/src/client/windows/crash_generation/crash_generation_server.cc +++ b/src/client/windows/crash_generation/crash_generation_server.cc @@ -793,6 +793,7 @@ void CALLBACK CrashGenerationServer::OnClientEnd(void* context, BOOLEAN) { CrashGenerationServer* crash_server = client_info->crash_server(); assert(crash_server); + client_info->UnregisterWaits(); InterlockedIncrement(&crash_server->cleanup_item_count_); if (!QueueUserWorkItem(CleanupClient, context, WT_EXECUTEDEFAULT)) {