From 4d7035e157e6a2a193e8f472bccbc6a644bf004d Mon Sep 17 00:00:00 2001 From: onefang Date: Tue, 17 Aug 2021 21:30:03 +1000 Subject: Don't delete the web socket if we are not running in web mode. --- src/sledjchisl/sledjchisl.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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) char *cmd = xmprintf("%s/sledjchisl.socket", scRun); - if (qfile_exist(cmd)) + if (isWeb && qfile_exist(cmd)) { + V("Deleting web socket."); free(cmd); cmd = xmprintf("rm %s/sledjchisl.socket", scRun); if (!WIFEXITED(system(cmd))) -- cgit v1.1