Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Signed-off-by: Tomasz Strejczek <[email protected]>
  • Loading branch information
tomaszstrejczek committed Oct 20, 2019
1 parent 966dc23 commit 5c7945a
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -477,6 +477,9 @@ private void writeServerStatusFiles(InetSocketAddress address) throws IOExceptio
info.writeTo(out);
}
Path serverInfoFile = serverDirectory.getChild(SERVER_INFO_FILE);
if (serverInfoFile.exists()) {
serverInfoFile.delete();
}
serverInfoTmpFile.renameTo(serverInfoFile);
deleteAtExit(serverInfoFile);
}
Expand Down

0 comments on commit 5c7945a

Please sign in to comment.