aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2022-12-10 22:33:12 +0100
committerdec05eba <dec05eba@protonmail.com>2022-12-10 22:33:12 +0100
commit7777e7710318a73f49560c9ee7a63166d9dcbe6e (patch)
treecd1a46135c20e150a2031645935decab47adb881
parentc567392a7a82040999e2a96b39084c900385ad57 (diff)
Matrix: only delete sock file if we are the process owning the sock file
-rw-r--r--src/QuickMedia.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/QuickMedia.cpp b/src/QuickMedia.cpp
index a0324c0..84b6cc4 100644
--- a/src/QuickMedia.cpp
+++ b/src/QuickMedia.cpp
@@ -652,7 +652,7 @@ namespace QuickMedia {
}
done:
- if(plugin_name && strcmp(plugin_name, "matrix") == 0)
+ if(plugin_name && strcmp(plugin_name, "matrix") == 0 && !matrix_instance_already_running)
remove_quickmedia_instance_lock(get_cache_dir().join("matrix").data.c_str(), "matrix");
return exit_code;