mirror of
https://github.com/lubosz/overte.git
synced 2025-04-23 09:33:45 +02:00
Don't leave running markers around if they weren't there before and we quit after reporting (protocol)version.
This commit is contained in:
parent
ac1d4d9636
commit
fea8a95fc7
1 changed files with 4 additions and 0 deletions
|
@ -453,6 +453,10 @@ bool setupEssentials(int& argc, char** argv, bool runningMarkerExisted) {
|
|||
if (fp) {
|
||||
report(fp);
|
||||
fclose(fp);
|
||||
if (!runningMarkerExisted) { // don't leave ours around
|
||||
RunningMarker runingMarker(RUNNING_MARKER_FILENAME);
|
||||
runingMarker.deleteRunningMarkerFile(); // happens in deleter, but making the side-effect explicit.
|
||||
}
|
||||
_exit(0);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue