]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
Added wait on signon failure due to update contacts failing
authorLuke Fitzgerald <lw.fitzgerald@googlemail.com>
Wed, 30 Jun 2010 16:18:44 +0000 (09:18 -0700)
committerLuke Fitzgerald <lw.fitzgerald@googlemail.com>
Wed, 30 Jun 2010 16:18:44 +0000 (09:18 -0700)
plugins/Msn/extlib/phpmsnclass/msn.class.php

index 6d7b95b72b92b8d76a1deb4a1da2ecfd387ac330..350d7fca9bf951a006f9d9caeed1fa2afa97d7a5 100644 (file)
@@ -271,7 +271,7 @@ class MSN {
                         // NS: >>> OUT\r
                         $this->ns_writeln("OUT");\r
                         @fclose($this->NSfp);\r
-                        $this->error = 'Passport authenticated fail!';\r
+                        $this->error = 'Passport authentication failed!';\r
                         return false;\r
                     }\r
 \r
@@ -358,7 +358,10 @@ class MSN {
             }\r
 \r
             // Update contacts\r
-            if ($this->UpdateContacts() === false) continue;\r
+            if ($this->UpdateContacts() === false) {\r
+                $this->signonFailure('');\r
+                continue;\r
+            }\r
 \r
             // Get membership lists\r
             if (($this->aContactList = $this->getMembershipList()) === false) {\r
@@ -480,7 +483,9 @@ class MSN {
     * @return void\r
     */\r
     private function signonFailure($message) {\r
-        $this->debug_message($message);\r
+       if(!empty($message)) {\r
+            $this->debug_message($message);\r
+       }\r
         $this->callHandler('ConnectFailed');\r
         $this->NSRetryWait($this->retry_wait);\r
     }\r