mirror of https://github.com/deavmi/birchwood
Receiver
- Added a TODO (for disposal) Sender - Added a TODO (for disposal) Client - Removed unused method `closedConnectiondHandler()`
This commit is contained in:
parent
2305c19623
commit
830a609dad
|
@ -214,25 +214,6 @@ public class Client : Thread
|
|||
logger.log("Connection was closed, not doing anything");
|
||||
}
|
||||
|
||||
/**
|
||||
* Called when the receiver realises the socket has
|
||||
* closed
|
||||
*/
|
||||
private void closedConnectionHandler()
|
||||
{
|
||||
// Set the running state to false
|
||||
this.running = false;
|
||||
|
||||
// Now we can wake up any sleeping managers and let them stop
|
||||
this.sender.end();
|
||||
this.receiver.end();
|
||||
|
||||
// TODO: Do any other clean up that needs to be done
|
||||
|
||||
// Call the event handler
|
||||
onConnectionClosed();
|
||||
}
|
||||
|
||||
/**
|
||||
* Requests setting of the provided nickname
|
||||
*
|
||||
|
|
|
@ -247,5 +247,7 @@ public final class ReceiverThread : Thread
|
|||
|
||||
// Wait on the manager thread to end
|
||||
join();
|
||||
|
||||
// TODO: Call dispose() on eventy event
|
||||
}
|
||||
}
|
|
@ -152,5 +152,7 @@ public final class SenderThread : Thread
|
|||
|
||||
// Wait on the manager thread to end
|
||||
join();
|
||||
|
||||
// TODO: Call dispose() on eventy event
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue