Fix: TCPClient
This commit is contained in:
@@ -57,8 +57,7 @@ public class ClientHandler implements Runnable {
|
|||||||
@Override
|
@Override
|
||||||
public void run() {
|
public void run() {
|
||||||
try {
|
try {
|
||||||
in = new ObjectInputStream(clientSocket.getInputStream());
|
|
||||||
out = new ObjectOutputStream(clientSocket.getOutputStream());
|
|
||||||
while (true) {
|
while (true) {
|
||||||
NetworkEvent event = (NetworkEvent) in.readObject();
|
NetworkEvent event = (NetworkEvent) in.readObject();
|
||||||
if (!actionQueue.add(event)) {
|
if (!actionQueue.add(event)) {
|
||||||
|
|||||||
Reference in New Issue
Block a user