1
0
mirror of https://github.com/deavmi/birchwood synced 2024-09-20 10:43:33 +02:00
- Dispose the `Event` after call to `join()`

Sender

- Dispose the `Event` after call to `join()`
This commit is contained in:
Tristan B. Velloza Kildaire 2023-06-29 18:35:42 +02:00
parent 6119dd94c8
commit 7cfed69036
2 changed files with 4 additions and 2 deletions

View File

@ -248,6 +248,7 @@ public final class ReceiverThread : Thread
// Wait on the manager thread to end // Wait on the manager thread to end
join(); join();
// TODO: Call dispose() on eventy event // Dispose the eventy event (TODO: We could do this then join for same effect)
receiveEvent.dispose();
} }
} }

View File

@ -153,6 +153,7 @@ public final class SenderThread : Thread
// Wait on the manager thread to end // Wait on the manager thread to end
join(); join();
// TODO: Call dispose() on eventy event // Dispose the eventy event (TODO: We could do this then join for same effect)
sendEvent.dispose();
} }
} }