diff options
author | onefang | 2021-08-17 21:30:03 +1000 |
---|---|---|
committer | onefang | 2021-08-17 21:30:03 +1000 |
commit | 4d7035e157e6a2a193e8f472bccbc6a644bf004d (patch) | |
tree | 780ca1fe10116287bd222b4c9ba9c88eef86f6f7 | |
parent | Bitch if the sim has not stopped yet. (diff) | |
download | opensim-SC-4d7035e157e6a2a193e8f472bccbc6a644bf004d.zip opensim-SC-4d7035e157e6a2a193e8f472bccbc6a644bf004d.tar.gz opensim-SC-4d7035e157e6a2a193e8f472bccbc6a644bf004d.tar.bz2 opensim-SC-4d7035e157e6a2a193e8f472bccbc6a644bf004d.tar.xz |
Don't delete the web socket if we are not running in web mode.
-rw-r--r-- | src/sledjchisl/sledjchisl.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/sledjchisl/sledjchisl.c b/src/sledjchisl/sledjchisl.c index 5c69252..8f4ea91 100644 --- a/src/sledjchisl/sledjchisl.c +++ b/src/sledjchisl/sledjchisl.c | |||
@@ -7473,8 +7473,9 @@ static void cleanup(void) | |||
7473 | 7473 | ||
7474 | char *cmd = xmprintf("%s/sledjchisl.socket", scRun); | 7474 | char *cmd = xmprintf("%s/sledjchisl.socket", scRun); |
7475 | 7475 | ||
7476 | if (qfile_exist(cmd)) | 7476 | if (isWeb && qfile_exist(cmd)) |
7477 | { | 7477 | { |
7478 | V("Deleting web socket."); | ||
7478 | free(cmd); | 7479 | free(cmd); |
7479 | cmd = xmprintf("rm %s/sledjchisl.socket", scRun); | 7480 | cmd = xmprintf("rm %s/sledjchisl.socket", scRun); |
7480 | if (!WIFEXITED(system(cmd))) | 7481 | if (!WIFEXITED(system(cmd))) |