Path: blob/main/sp-server/src_aux/TcpReaderThread.java
8641 views
package net.minecraft.src;12class TcpReaderThread extends Thread {3final TcpConnection theTcpConnection;45TcpReaderThread(TcpConnection par1TcpConnection, String par2Str) {6super(par2Str);7this.theTcpConnection = par1TcpConnection;8}910public void run() {11TcpConnection.field_74471_a.getAndIncrement();1213try {14while (TcpConnection.isRunning(this.theTcpConnection)15&& !TcpConnection.isServerTerminating(this.theTcpConnection)) {16while (true) {17if (!TcpConnection.readNetworkPacket(this.theTcpConnection)) {18try {19sleep(2L);20} catch (InterruptedException var5) {21;22}23}24}25}26} finally {27TcpConnection.field_74471_a.getAndDecrement();28}29}30}313233