mirror of
https://github.com/deavmi/birchwood
synced 2024-09-20 10:23:31 +02:00
Client
- Documented a methodClient - Added some TODOs which need to be done - When checking for active session use `running == false` not `socket is null` which is not set back to `null` when disconnected after one session Unit tests
This commit is contained in:
parent
a782bc9317
commit
855925c231
@ -1014,6 +1014,11 @@ public class Client : Thread
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* Cleans up resources which would have been allocated
|
||||
* during the call to `connect()` and for the duration
|
||||
* of the open session
|
||||
*/
|
||||
private void doThreadCleanup()
|
||||
{
|
||||
/* Stop the receive queue manager and wait for it to stop */
|
||||
@ -1402,21 +1407,18 @@ public class Client : Thread
|
||||
|
||||
// TODO: Don't forget to re-enable this when done testing!
|
||||
Thread.sleep(dur!("seconds")(4));
|
||||
// client.joinChannel("#birchwood");
|
||||
// while(true)
|
||||
// {
|
||||
// Thread.sleep(dur!("seconds")(15));
|
||||
// }
|
||||
|
||||
client.quit();
|
||||
|
||||
|
||||
/**
|
||||
* Reconnect (TODO: This is new testing code)
|
||||
* Reconnect again (to test it)
|
||||
*/
|
||||
client.connect();
|
||||
|
||||
|
||||
/**
|
||||
* Join #birchwood, send a message
|
||||
* and then quit once again
|
||||
*/
|
||||
Thread.sleep(dur!("seconds")(4));
|
||||
client.joinChannel("#birchwood");
|
||||
client.channelMessage("Lekker", "#birchwood");
|
||||
|
Loading…
Reference in New Issue
Block a user