Skip to content

Commit

Permalink
[wpiutil] SignalObject: Fix move operator=
Browse files Browse the repository at this point in the history
  • Loading branch information
PeterJohnson committed Jan 7, 2025
1 parent 7032de3 commit 181907d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion wpiutil/src/main/native/include/wpi/Synchronization.h
Original file line number Diff line number Diff line change
Expand Up @@ -407,7 +407,7 @@ class SignalObject final {
}
SignalObject& operator=(SignalObject&& rhs) {
if (m_handle != 0) {
DestroySemaphore(m_handle);
DestroySignalObject(m_handle);
}
m_handle = rhs.m_handle;
rhs.m_handle = 0;
Expand Down

0 comments on commit 181907d

Please sign in to comment.