- Added a TODO (for disposal)

Sender

- Added a TODO (for disposal)

Client

- Removed unused method `closedConnectiondHandler()`
This commit is contained in:
Tristan B. Velloza Kildaire 2023-06-27 20:09:35 +02:00
parent 2305c19623
commit 830a609dad
3 changed files with 4 additions and 19 deletions

View File

@ -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
*

View File

@ -247,5 +247,7 @@ public final class ReceiverThread : Thread
// Wait on the manager thread to end
join();
// TODO: Call dispose() on eventy event
}
}

View File

@ -152,5 +152,7 @@ public final class SenderThread : Thread
// Wait on the manager thread to end
join();
// TODO: Call dispose() on eventy event
}
}