Skip to content

Commit

Permalink
Fixed - Random connection drops
Browse files Browse the repository at this point in the history
  • Loading branch information
hobsRKM committed Sep 12, 2021
1 parent 74f0990 commit 7b9c333
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/PHPDiscordSDK/Events/Timer.php
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ public function isTimerSet(): bool
* Date: 8/21/2021
*/
private function networkPing() {
if(!@fsockopen('www.discord.com', 80) || !@fsockopen('www.google.com', 80))
if(!@fsockopen('www.discord.com', 80) && !@fsockopen('www.google.com', 80))
{
Console::printMessage($this->_constants->errors->NETWORK_TIMEOUT);
$this->cancelTimer();
Expand Down

0 comments on commit 7b9c333

Please sign in to comment.