Index: chrome/renderer/webworker_proxy.cc |
=================================================================== |
--- chrome/renderer/webworker_proxy.cc (revision 19674) |
+++ chrome/renderer/webworker_proxy.cc (working copy) |
@@ -58,6 +58,10 @@ |
if (route_id_ != MSG_ROUTING_NONE) { |
Send(new WorkerMsg_TerminateWorkerContext(route_id_)); |
child_thread_->RemoveRoute(route_id_); |
+ if (!queued_messages_.empty()) { |
+ child_thread_->Send( |
+ new ViewHostMsg_CancelCreateDedicatedWorker(route_id_)); |
+ } |
route_id_ = MSG_ROUTING_NONE; |
} |
} |