1
0
mirror of https://github.com/deavmi/birchwood synced 2024-09-20 11:22:53 +02:00
- Fixed a possible bug whereby the `Receiver` and `Sender` may exit on start as they get to their `client.running` read before the main thread gets to setting `running = true`
This commit is contained in:
Tristan B. Velloza Kildaire 2023-03-11 15:15:11 +02:00
parent 40e7a3b2b9
commit 1bdc68774f

View File

@ -586,14 +586,14 @@ public class Client : Thread
// * libsnooze exists)
// */
/* Set the running status to true */
running = true;
/* Start the receive queue and send queue managers */
this.receiver.start();
this.sender.start();
// while(!receiver.isReady() || !sender.isReady()) {}
/* Set the running status to true */
running = true;
/* Start the socket read-decode loop */
this.start();
}