mirror of
https://github.com/danog/MadelineProto.git
synced 2024-11-30 10:19:00 +01:00
Fix
This commit is contained in:
parent
a64e55cbd8
commit
7929e8053e
2
docs
2
docs
@ -1 +1 @@
|
||||
Subproject commit d06f79a1848bd380d6ad9a71a3ead0c2c2ded4a1
|
||||
Subproject commit dc05dc5cebfcec90ac7851928c522a4d635dbab6
|
@ -93,17 +93,17 @@ class UpdateLoop extends ResumableSignalLoop
|
||||
|
||||
return true;
|
||||
}
|
||||
throw $e;
|
||||
} catch (Exception $e) {
|
||||
if (in_array($e->getMessage(), ['This peer is not present in the internal peer database'])) {
|
||||
$feeder->signal(true);
|
||||
//$API->getChannelStates()->remove($this->channelId);
|
||||
$API->getChannelStates()->remove($this->channelId);
|
||||
unset($API->updaters[$this->channelId]);
|
||||
unset($API->feeders[$this->channelId]);
|
||||
$API->logger->logger("Channel private, exiting $this");
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
throw $e;
|
||||
}
|
||||
if (isset($difference['timeout'])) {
|
||||
|
@ -296,6 +296,7 @@ trait ResponseHandler
|
||||
break;
|
||||
}
|
||||
}
|
||||
if ($this->datacenter->sockets[$datacenter]->pending_outgoing)
|
||||
$this->datacenter->sockets[$datacenter]->writer->resume();
|
||||
|
||||
//$this->n--;
|
||||
@ -359,6 +360,7 @@ trait ResponseHandler
|
||||
}
|
||||
switch ($response['error_code']) {
|
||||
case 500:
|
||||
case -500:
|
||||
if ($response['error_message'] === 'MSG_WAIT_FAILED') {
|
||||
$this->datacenter->sockets[$datacenter]->call_queue[$request['queue']] = [];
|
||||
$this->method_recall('', ['message_id' => $request_id, 'datacenter' => $datacenter, 'postpone' => true]);
|
||||
|
Loading…
Reference in New Issue
Block a user