diff options
Diffstat (limited to 'src/lane.cpp')
-rw-r--r-- | src/lane.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/lane.cpp b/src/lane.cpp index 923eabd..9ab574e 100644 --- a/src/lane.cpp +++ b/src/lane.cpp | |||
@@ -930,10 +930,10 @@ CancelResult Lane::cancel(CancelOp const op_, std::chrono::time_point<std::chron | |||
930 | 930 | ||
931 | // signal the linda to wake up the thread so that it can react to the cancel query | 931 | // signal the linda to wake up the thread so that it can react to the cancel query |
932 | // let us hope we never land here with a pointer on a linda that has been destroyed... | 932 | // let us hope we never land here with a pointer on a linda that has been destroyed... |
933 | if (op_ == CancelOp::Soft) { | 933 | if (op_.mode == CancelRequest::Soft) { |
934 | return internalCancel(CancelRequest::Soft, until_, wakeLane_); | 934 | return internalCancel(CancelRequest::Soft, until_, wakeLane_); |
935 | } else if (op_ > CancelOp::Soft) { | 935 | } else if (op_.hookMask != LuaHookMask::None) { |
936 | lua_sethook(L, _cancelHook, static_cast<int>(op_), hookCount_); | 936 | lua_sethook(L, _cancelHook, static_cast<int>(op_.hookMask), hookCount_); |
937 | } | 937 | } |
938 | 938 | ||
939 | return internalCancel(CancelRequest::Hard, until_, wakeLane_); | 939 | return internalCancel(CancelRequest::Hard, until_, wakeLane_); |