Skip to content

Commit

Permalink
rename .running to runningFile
Browse files Browse the repository at this point in the history
  • Loading branch information
extremeCrazyCoder committed Sep 12, 2020
1 parent 2d02eea commit 27a200a
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -704,15 +704,15 @@ public void run() {
}
});

File runningIndicator = new File(".running");
File runningIndicator = new File("runningFile");

if (runningIndicator.exists()) {
showRestoreOption();
} else {
try {
FileUtils.touch(new File(".running"));
FileUtils.touch(new File("runningFile"));
} catch (IOException ioe) {
logger.error("Failed to touch file '.running'", ioe);
logger.error("Failed to touch file 'runningFile'", ioe);
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -456,7 +456,7 @@ public void initializeSuperSpecialDebugFeatures() {
* @param args the command line arguments
*/
public static void main(String args[]) {
File runningIndicator = new File(".running");
File runningIndicator = new File("runningFile");
if (runningIndicator.exists()) {
int answer = JOptionPaneHelper.showQuestionConfirmBox(null, "Es scheint so als ob DSWorkbench noch laufen würde "
+ "oder nicht korrekt geschlossen wurde. Dennoch öffnen?", "Absturz?", "Nein", "Ja");
Expand Down
4 changes: 2 additions & 2 deletions Core/src/main/java/de/tor/tribes/util/MainShutdownHook.java
Original file line number Diff line number Diff line change
Expand Up @@ -63,8 +63,8 @@ public synchronized void run() {
DSWorkbenchMainFrame.getSingleton().storeProperties();
GlobalOptions.saveProperties();
GlobalOptions.storeViewStates();
if (!FileUtils.deleteQuietly(new File(".running"))) {
logger.warn("Failed to remove file '.running'");
if (!FileUtils.deleteQuietly(new File("runningFile"))) {
logger.warn("Failed to remove file 'runningFile'");
}
logger.debug("Shutdown finished");
} catch (Throwable t) {
Expand Down

0 comments on commit 27a200a

Please sign in to comment.