mirror of
https://github.com/Eaglercraft-Archive/Eaglercraft-1.5.2-src
synced 2025-09-05 13:11:08 +02:00
23 lines
539 B
Java
23 lines
539 B
Java
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();
|
|
}
|
|
}
|
|
}
|