Connection

- Removed now-completed TODO
- Use a boolean to supress unreachable errors
- Added a TODO to implement the above
- On exiting loop call the `Server`'s `onConnectionDisconnect(Connection)` method
This commit is contained in:
Tristan B. Velloza Kildaire 2023-11-26 14:15:59 +02:00
parent 416d583658
commit 313ff9b557
1 changed files with 8 additions and 3 deletions

View File

@ -96,8 +96,9 @@ public class Connection : Thread
// TODO: Well, we'd tasky I guess so I'd need to use it there I guess
// TODO: Add worker function here
while(true)
// TODO: Imp,ent nthe loop condition status (exit on error)
bool isGood = true;
while(isGood)
{
// TODO: Addn a tasky/tristanable queue managing thing with
// ... socket here (probably just the latter)
@ -130,7 +131,11 @@ public class Connection : Thread
}
}
// TODO: Call cleanup+notify server
// Clean up (TODO: Shutdown the TManager)
// Clean up - notify disconnection
this.associatedServer.onConnectionDisconnect(this);
}
// FIXME: These should be part of the auth details