eaglercraft-1.5/sp-server/src_aux/TcpMonitorThread.java

23 lines
539 B
Java
Raw Normal View History

2022-02-16 17:54:12 -08:00
package net.minecraft.src;
class TcpMonitorThread extends Thread {
final TcpConnection theTcpConnection;
TcpMonitorThread(TcpConnection par1TcpConnection) {
this.theTcpConnection = par1TcpConnection;
}
public void run() {
try {
Thread.sleep(2000L);
if (TcpConnection.isRunning(this.theTcpConnection)) {
TcpConnection.getWriteThread(this.theTcpConnection).interrupt();
this.theTcpConnection.networkShutdown("disconnect.closed", new Object[0]);
}
} catch (Exception var2) {
var2.printStackTrace();
}
}
}