Switch back to edge environment on travis and fix bug on datacenter switch
This commit is contained in:
parent
6b9391d74d
commit
dae2375bf3
@ -1,6 +1,6 @@
|
|||||||
sudo: required
|
sudo: required
|
||||||
#dist: trusty
|
dist: trusty
|
||||||
#group: edge
|
group: edge
|
||||||
language: php
|
language: php
|
||||||
php:
|
php:
|
||||||
- '7.0'
|
- '7.0'
|
||||||
|
@ -42,8 +42,7 @@ class CallHandler extends AuthKeyHandler
|
|||||||
$dc = preg_replace('/[^0-9]+/', '', $response['error_message']);
|
$dc = preg_replace('/[^0-9]+/', '', $response['error_message']);
|
||||||
\danog\MadelineProto\Logger::log('Received request to switch to DC '.$dc);
|
\danog\MadelineProto\Logger::log('Received request to switch to DC '.$dc);
|
||||||
$this->switch_dc($dc);
|
$this->switch_dc($dc);
|
||||||
|
throw new \danog\MadelineProto\Exception('I had to switch to datacenter '.$dc);
|
||||||
return $this->method_call($this->datacenter->outgoing_messages[$last_sent]['content']['method'], $this->datacenter->outgoing_messages[$last_sent]['content']['args']);
|
|
||||||
|
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
|
Loading…
Reference in New Issue
Block a user