Save
This commit is contained in:
parent
9ba299a9dc
commit
d559b1d8b6
@ -46,7 +46,7 @@ class ContextConnector implements Connector
|
||||
{
|
||||
return Tools::call(function () use ($uri, $socketContext, $token) {
|
||||
$socketContext = $socketContext ?? new ConnectContext;
|
||||
$token = $token ?? new NullCancellationToken
|
||||
$token = $token ?? new NullCancellationToken;
|
||||
|
||||
$attempt = 0;
|
||||
$uris = [];
|
||||
|
@ -455,7 +455,6 @@ class DataCenter
|
||||
// This is only for non-MTProto connections
|
||||
if (!$dc_number) {
|
||||
/** @var $ctx \danog\MadelineProto\Stream\ConnectionContext */
|
||||
$context->with
|
||||
$ctx = (new ConnectionContext())
|
||||
->setSocketContext($context)
|
||||
->setUri($uri)
|
||||
|
Loading…
Reference in New Issue
Block a user