diff options
Diffstat (limited to 'src/lane.cpp')
-rw-r--r-- | src/lane.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/lane.cpp b/src/lane.cpp index 7a5c257..5cebdfa 100644 --- a/src/lane.cpp +++ b/src/lane.cpp | |||
@@ -756,6 +756,12 @@ static void lane_main(Lane* const lane_) | |||
756 | } | 756 | } |
757 | } | 757 | } |
758 | 758 | ||
759 | if (lane_->flaggedAfterUniverseGC.load(std::memory_order_relaxed)) { | ||
760 | // let's try not to crash if the lane didn't terminate gracefully and the Universe met its end | ||
761 | // there will be leaks, but what else can we do? | ||
762 | return; | ||
763 | } | ||
764 | |||
759 | if (_errorHandlerCount) { | 765 | if (_errorHandlerCount) { |
760 | lua_remove(_L, 1); // L: retvals|error | 766 | lua_remove(_L, 1); // L: retvals|error |
761 | } | 767 | } |