summaryrefslogtreecommitdiffstats
path: root/notFinishedCode/web/mutex1.php
diff options
context:
space:
mode:
Diffstat (limited to 'notFinishedCode/web/mutex1.php')
-rw-r--r--notFinishedCode/web/mutex1.php8
1 files changed, 7 insertions, 1 deletions
diff --git a/notFinishedCode/web/mutex1.php b/notFinishedCode/web/mutex1.php
index 695ed09..61cd0b0 100644
--- a/notFinishedCode/web/mutex1.php
+++ b/notFinishedCode/web/mutex1.php
@@ -43,7 +43,8 @@ if ($locking == '1') //1 means nobody is on the website
//check if the software is running!
$softwareLock = 'SoftwareStarted';
-
+ if($taskAmount!=0)
+ {
$softwareRunning = isLocked($softwareLock);
if($softwareRunning == '1') //1 means software is not started yet, start it
{
@@ -169,6 +170,11 @@ if ($locking == '1') //1 means nobody is on the website
//$release = ReleaseLock($nameOfLock);
//echo $release . "<br>";
+ }
+ else
+ {
+ echo 'No single task was selected';
+ }
}
elseif($lockMe == '0') //0 means if the attempt timed out (for example, because another client has previously locked the name)
{