Added wait on signon failure due to update contacts failing
This commit is contained in:
parent
4c3b420969
commit
9a7c60a3e2
@ -271,7 +271,7 @@ class MSN {
|
|||||||
// NS: >>> OUT
|
// NS: >>> OUT
|
||||||
$this->ns_writeln("OUT");
|
$this->ns_writeln("OUT");
|
||||||
@fclose($this->NSfp);
|
@fclose($this->NSfp);
|
||||||
$this->error = 'Passport authenticated fail!';
|
$this->error = 'Passport authentication failed!';
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -358,7 +358,10 @@ class MSN {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Update contacts
|
// Update contacts
|
||||||
if ($this->UpdateContacts() === false) continue;
|
if ($this->UpdateContacts() === false) {
|
||||||
|
$this->signonFailure('');
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
|
||||||
// Get membership lists
|
// Get membership lists
|
||||||
if (($this->aContactList = $this->getMembershipList()) === false) {
|
if (($this->aContactList = $this->getMembershipList()) === false) {
|
||||||
@ -480,7 +483,9 @@ class MSN {
|
|||||||
* @return void
|
* @return void
|
||||||
*/
|
*/
|
||||||
private function signonFailure($message) {
|
private function signonFailure($message) {
|
||||||
$this->debug_message($message);
|
if(!empty($message)) {
|
||||||
|
$this->debug_message($message);
|
||||||
|
}
|
||||||
$this->callHandler('ConnectFailed');
|
$this->callHandler('ConnectFailed');
|
||||||
$this->NSRetryWait($this->retry_wait);
|
$this->NSRetryWait($this->retry_wait);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user