We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c6f12c9 commit 234e237Copy full SHA for 234e237
1 file changed
LDKNodeMonday/Service/Lightning Service/LightningNodeService.swift
@@ -351,11 +351,14 @@ extension LightningNodeService {
351
Task {
352
while true {
353
let event = await ldkNode.nextEventAsync()
354
+ // Ensure event is handled before posting notification
355
+ if event != nil {
356
+ try? ldkNode.eventHandled()
357
+ }
358
NotificationCenter.default.post(
359
name: .ldkEventReceived,
360
object: event
361
)
- try? ldkNode.eventHandled()
362
}
363
364
0 commit comments