Skip to content

Commit 9dc95c5

Browse files
committed
f sub
1 parent 159be9b commit 9dc95c5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lightning/src/ln/peer_handler.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2124,7 +2124,7 @@ impl<Descriptor: SocketDescriptor, CM: Deref, RM: Deref, OM: Deref, L: Deref, CM
21242124
}
21252125
}
21262126

2127-
if self.event_processing_state.fetch_add(-1, Ordering::AcqRel) != 1 {
2127+
if self.event_processing_state.fetch_sub(1, Ordering::AcqRel) != 1 {
21282128
// If another thread incremented the state while we were running we should go
21292129
// around again, but only once.
21302130
self.event_processing_state.store(1, Ordering::Release);

0 commit comments

Comments
 (0)