Skip to content

Commit

Permalink
Added last changes as requested by the teacher
Browse files Browse the repository at this point in the history
  • Loading branch information
ruieduardolopes committed May 17, 2018
1 parent 925797b commit bd40916
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion scripts/utils.sh
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ print_execserver_usage () {
killscenario () {
tokill=$(ps aux | grep java | grep sd0402 | awk '{ print $2 }'| column)
for item in $tokill; do
kill $item
kill -9 $item
done
}

Expand Down
3 changes: 2 additions & 1 deletion server/ServerLauncher.java
Original file line number Diff line number Diff line change
Expand Up @@ -68,10 +68,11 @@ public static void main(String[] args) {
Logger.printInformation("An agent was already made available to attend the situation");
serviceProviderAgent.start();
} catch (SocketTimeoutException ste) {
System.exit(0);

}
terminateExecution = ServiceProviderAgent.getShutdownCounter(args[0]);
}
serverConnectionRequest.close();
} catch (InterruptedException ie) {
Logger.printError("An exception has been thrown... catch it man! Below there is some information about it");
ie.printStackTrace();
Expand Down

0 comments on commit bd40916

Please sign in to comment.