| 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; |
| } |