Index: Source/WebCore/workers/WorkerMessagingProxy.cpp |
=================================================================== |
--- Source/WebCore/workers/WorkerMessagingProxy.cpp (revision 115611) |
+++ Source/WebCore/workers/WorkerMessagingProxy.cpp (working copy) |
@@ -296,13 +296,14 @@ |
m_queuedEarlyTasks.append(MessageWorkerContextTask::create(message, channels)); |
} |
-void WorkerMessagingProxy::postTaskForModeToWorkerContext(PassOwnPtr<ScriptExecutionContext::Task> task, const String& mode) |
+bool WorkerMessagingProxy::postTaskForModeToWorkerContext(PassOwnPtr<ScriptExecutionContext::Task> task, const String& mode) |
{ |
if (m_askedToTerminate) |
- return; |
+ return false; |
ASSERT(m_workerThread); |
m_workerThread->runLoop().postTaskForMode(task, mode); |
+ return true; |
} |
void WorkerMessagingProxy::postTaskToLoader(PassOwnPtr<ScriptExecutionContext::Task> task) |