Path: blob/main/sp-server/src_aux/TcpMasterThread.java
8641 views
package net.minecraft.src;12class TcpMasterThread extends Thread {3final TcpConnection theTcpConnection;45TcpMasterThread(TcpConnection par1TcpConnection) {6this.theTcpConnection = par1TcpConnection;7}89@SuppressWarnings("deprecation")10public void run() {11try {12Thread.sleep(5000L);1314if (TcpConnection.getReadThread(this.theTcpConnection).isAlive()) {15try {16TcpConnection.getReadThread(this.theTcpConnection).stop();17} catch (Throwable var3) {18;19}20}2122if (TcpConnection.getWriteThread(this.theTcpConnection).isAlive()) {23try {24TcpConnection.getWriteThread(this.theTcpConnection).stop();25} catch (Throwable var2) {26;27}28}29} catch (InterruptedException var4) {30var4.printStackTrace();31}32}33}343536