We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8f2ae53 commit 0236a6fCopy full SHA for 0236a6f
proxy.php
@@ -70,6 +70,11 @@ function startLoolwsd()
70
// Extract the AppImage if FUSE is not available
71
$launchCmd = "bash -c \"( $appImage || $appImage --appimage-extract-and-run ) >/dev/null & disown\"";
72
73
+ // Remove stale lock file (just in case)
74
+ if (file_exists('/tmp/loolwsd.lock'))
75
+ if (time() - filectime('/tmp/loolwsd.lock') > 60 * 5)
76
+ unlink('/tmp/loolwsd.lock');
77
+
78
// Prevent second start
79
$lock = @fopen("/tmp/loolwsd.lock", "x");
80
if ($lock)
0 commit comments