Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Unified Diff: src/Thread.cpp

Issue 29361562: Issue 3594 - remove circular references JsEngine-JsValue-JsEngine (Closed)
Patch Set: Created Nov. 3, 2016, 11:26 a.m.
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: src/Thread.cpp
diff --git a/src/Thread.cpp b/src/Thread.cpp
index 91bfe61fdf727b428f63b9d413bc9bef130a6d39..ff39b6b0b38d1b19dabf9d8b35da4eaca09f8a7a 100644
--- a/src/Thread.cpp
+++ b/src/Thread.cpp
@@ -20,6 +20,7 @@
#endif
#include "Thread.h"
+#include <AdblockPlus/JsEngine.h>
using namespace AdblockPlus;
@@ -107,7 +108,13 @@ void Thread::Join()
void Thread::CallRun(Thread* thread)
{
- thread->Run();
+ try
+ {
+ thread->Run();
+ }
+ catch (const AdblockPlus::JsEngine::JsEngineNotAvailableException&)
+ {
+ }
if (thread->m_deleteSelfOnFinish)
delete thread;
}

Powered by Google App Engine
This is Rietveld