Skip to content
This repository has been archived by the owner on Jan 17, 2022. It is now read-only.

Commit

Permalink
Make VIPER not quit again
Browse files Browse the repository at this point in the history
  • Loading branch information
Marius Wöste committed Dec 22, 2017
1 parent 43331ab commit 3045d70
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/main/java/de/imi/marw/viper/main/Main.java
Original file line number Diff line number Diff line change
Expand Up @@ -70,14 +70,16 @@ public static void main(String[] args) {
} catch (FileNotFoundException ex) {
Logger.getLogger(Main.class.getName()).log(Level.SEVERE, null, ex);
System.err.println("[ERROR] File not found. Make sure your configuration paths are set correctly.");

if (server != null) {
server.stop();
}
} catch (IOException ex) {
Logger.getLogger(Main.class.getName()).log(Level.SEVERE, null, ex);
} finally {

if (server != null) {
server.stop();
}

}
}
}

0 comments on commit 3045d70

Please sign in to comment.