X-Git-Url: http://git.pjr.cc/?p=xmppcentral.git;a=blobdiff_plain;f=lib%2FsystemServer.php;h=082b8d51fc02d4ed67c3d043681c28f81750a389;hp=8535ab6489723b558b0e0ddcabca274690393d4c;hb=70fc266c42f1634dac2d6fe2dc29e8060d24ab96;hpb=1aaffed55883b756a7adca132a7bb3871e1dda4d diff --git a/lib/systemServer.php b/lib/systemServer.php index 8535ab6..082b8d5 100644 --- a/lib/systemServer.php +++ b/lib/systemServer.php @@ -8,8 +8,18 @@ class systemServer { function isRunning() { + if(!runningCheck) { + // this code does the check to see if it should be running .. i.e. am i the system server. we only want to do this check once + runningCheck = true; + shouldIRun = false; + } + // the purpose of this function is two fold, first determines if it should be running and return true if not // then checks if the ss is running or not and returns true if it is + return true; } + + private runningCheck = false; + private shouldIRun = false; } ?> \ No newline at end of file