1
0
mirror of https://github.com/danog/MadelineProto.git synced 2024-11-27 07:34:41 +01:00
This commit is contained in:
Daniil Gentili 2017-07-19 22:51:19 +01:00
parent 2e83d0991e
commit 5cd8c6d367
2 changed files with 1 additions and 8 deletions

View File

@ -269,15 +269,8 @@ class MTProto extends \Volatile
}
foreach ($this->calls as $id => $controller) {
if (is_array($controller) || $controller->getCallState() === \danog\MadelineProto\VoIP::CALL_STATE_ENDED) {
<<<<<<< HEAD
$controller->discard();
} else var_dump($controller->getCallState());
=======
unset($this->calls[$id]);
} else {
var_dump($controller->getCallState());
}
>>>>>>> d2ce6c06842a023a088ca7ac2b6d3967641a868d
}
// Detect ipv6
$this->ipv6 = (bool) strlen(@file_get_contents('http://ipv6.test-ipv6.com/', false, stream_context_create(['http' => ['timeout' => 1]]))) > 0;

View File

@ -121,7 +121,7 @@ echo 'Serializing MadelineProto to session.madeline...'.PHP_EOL; echo 'Wrote
if (stripos(readline('Do you want to make the secret chat tests? (y/n): '), 'y') !== false) {
$start = false;
$MadelineProto->request_call('@danogentili', '\pony');
$MadelineProto->request_call('@vagent', '\pony');
while (1) {
$MadelineProto->get_updates();
}