Skip to content

Commit

Permalink
Avoid dropping the connection for now
Browse files Browse the repository at this point in the history
  • Loading branch information
danog committed Sep 7, 2023
1 parent 2131a91 commit c6299d2
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion docs
Submodule docs updated 5928 files
2 changes: 1 addition & 1 deletion src/API.php
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ final class API extends AbstractAPI
*
* @var string
*/
public const RELEASE = '8.0.0-beta145';
public const RELEASE = '8.0.0-beta146';
/**
* Secret chat was not found.
*
Expand Down
6 changes: 3 additions & 3 deletions src/Loop/Connection/CheckLoop.php
Original file line number Diff line number Diff line change
Expand Up @@ -132,9 +132,9 @@ protected function loop(): ?float
}
}
$this->connection->flush();
} catch (CancelledException) {
$this->logger->logger("We did not receive a response for {$this->timeout} seconds: reconnecting and exiting check loop on DC {$this->datacenter}");
EventLoop::queue($this->connection->reconnect(...));
//} catch (CancelledException) {
//$this->logger->logger("We did not receive a response for {$this->timeout} seconds: reconnecting and exiting check loop on DC {$this->datacenter}");
//EventLoop::queue($this->connection->reconnect(...));
} catch (\Throwable $e) {
$this->logger->logger("Got exception in check loop for DC {$this->datacenter}");
$this->logger->logger((string) $e);
Expand Down

0 comments on commit c6299d2

Please sign in to comment.