forked from 2009Scape/Server
Add remote kicking support to the MS
This commit is contained in:
parent
b1b3ff06dd
commit
563e7ac404
3 changed files with 36 additions and 0 deletions
|
|
@ -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();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue