Skip to content

Commit

Permalink
Fix possible concurrency bug
Browse files Browse the repository at this point in the history
  • Loading branch information
atilaneves committed Nov 9, 2018
1 parent 6c3d8d3 commit e3c1c1e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion source/fearless/sharing.d
Original file line number Diff line number Diff line change
Expand Up @@ -137,8 +137,8 @@ package struct ExclusiveImpl(T) {
}

~this() scope @trusted {
_mutex.unlock_nothrow();
*_locked = false;
_mutex.unlock_nothrow();
}
}
}

0 comments on commit e3c1c1e

Please sign in to comment.