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
|
||||
#dist: trusty
|
||||
#group: edge
|
||||
dist: trusty
|
||||
group: edge
|
||||
language: php
|
||||
php:
|
||||
- '7.0'
|
||||
|
@ -42,8 +42,7 @@ class CallHandler extends AuthKeyHandler
|
||||
$dc = preg_replace('/[^0-9]+/', '', $response['error_message']);
|
||||
\danog\MadelineProto\Logger::log('Received request to switch to DC '.$dc);
|
||||
$this->switch_dc($dc);
|
||||
|
||||
return $this->method_call($this->datacenter->outgoing_messages[$last_sent]['content']['method'], $this->datacenter->outgoing_messages[$last_sent]['content']['args']);
|
||||
throw new \danog\MadelineProto\Exception('I had to switch to datacenter '.$dc);
|
||||
|
||||
break;
|
||||
default:
|
||||
|
Loading…
Reference in New Issue
Block a user