diff --git a/src/lime/system/ThreadPool.hx b/src/lime/system/ThreadPool.hx index f0ce2cfcc..abb35f683 100644 --- a/src/lime/system/ThreadPool.hx +++ b/src/lime/system/ThreadPool.hx @@ -400,7 +400,7 @@ class ThreadPool extends WorkOutput event.job.doWork.dispatch(event.job.state, output); } } - catch (e:Dynamic) + catch (e:#if (haxe_ver >= 4.1) haxe.Exception #else Dynamic #end) { output.sendError(e); } @@ -494,7 +494,7 @@ class ThreadPool extends WorkOutput } while (!__jobComplete.value && timeElapsed < __workPerFrame); } - catch (e:Dynamic) + catch (e:#if (haxe_ver >= 4.1) haxe.Exception #else Dynamic #end) { sendError(e); }