Skip to content

Commit

Permalink
Corrects issue #11(Error when closing the application server)
Browse files Browse the repository at this point in the history
  • Loading branch information
Veleri authored and Veleri committed Feb 27, 2016
1 parent 357f87c commit 2f5fb34
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/main/java/server/controller/ControllerServer.java
Original file line number Diff line number Diff line change
Expand Up @@ -277,9 +277,14 @@ public void run()throws IOException, SAXException{
if(this.finish){
return;
}
try {
Socket client = socket.accept();
logger.debug("Connection from " + client.getInetAddress().getHostName());
this.addObserver(new ServerThread(client));
}
catch (SocketException e){
continue;
}

}

Expand Down

0 comments on commit 2f5fb34

Please sign in to comment.