]> git.mjollnir.org Git - moodle.git/commitdiff
Mnet: Bugfix for keepalive client
authordonal72 <donal72>
Thu, 11 Jan 2007 05:38:45 +0000 (05:38 +0000)
committerdonal72 <donal72>
Thu, 11 Jan 2007 05:38:45 +0000 (05:38 +0000)
auth/mnet/auth.php

index 7e0307bac3914b1707df6f5813caa996bfcb7562..ba3fbb0c3fbc815f650a49065ef26f13599bde30 100644 (file)
@@ -413,7 +413,7 @@ class auth_plugin_mnet
      * @return  void
      */
     function keepalive_client() {
-        global $CFG;
+        global $CFG, $MNET;
         $cutoff = time() - 300; // TODO - find out what the remote server's session
                                 // cutoff is, and preempt that
 
@@ -467,6 +467,7 @@ class auth_plugin_mnet
             } else {
                 debugging("Server side error has occured on host $mnethostid: " . 
                           join("\n", $mnet_request->error));
+                break;
             }
 
             $query = "SELECT