Add remote kicking support to the MS

This commit is contained in:
ceikry 2021-11-29 22:41:23 -06:00
parent b1b3ff06dd
commit 563e7ac404
3 changed files with 36 additions and 0 deletions

View file

@ -152,6 +152,7 @@ public class IoSession {
* Handles the writing of all buffers in the queue.
*/
public void write() {
if (!key.isValid()) {
disconnect();
return;
@ -169,6 +170,7 @@ public class IoSession {
writingQueue.remove(0);
}
} catch (IOException e) {
e.printStackTrace();
disconnect();
} finally {
writingLock.unlock();