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

35 lines
763 B
Java
Raw Normal View History

2022-02-16 17:54:12 -08:00
package net.minecraft.src;
class TcpMasterThread extends Thread {
final TcpConnection theTcpConnection;
TcpMasterThread(TcpConnection par1TcpConnection) {
this.theTcpConnection = par1TcpConnection;
}
@SuppressWarnings("deprecation")
public void run() {
try {
Thread.sleep(5000L);
if (TcpConnection.getReadThread(this.theTcpConnection).isAlive()) {
try {
TcpConnection.getReadThread(this.theTcpConnection).stop();
} catch (Throwable var3) {
;
}
}
if (TcpConnection.getWriteThread(this.theTcpConnection).isAlive()) {
try {
TcpConnection.getWriteThread(this.theTcpConnection).stop();
} catch (Throwable var2) {
;
}
}
} catch (InterruptedException var4) {
var4.printStackTrace();
}
}
}