mirror of
https://github.com/overte-org/overte.git
synced 2025-08-07 19:50:38 +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) {
|
if (fp) {
|
||||||
report(fp);
|
report(fp);
|
||||||
fclose(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);
|
_exit(0);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue