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

35 lines
763 B
Java

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();
}
}
}