Skip to content

Commit 7b9c333

Browse files
committed
Fixed - Random connection drops
1 parent 74f0990 commit 7b9c333

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/PHPDiscordSDK/Events/Timer.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ public function isTimerSet(): bool
8181
* Date: 8/21/2021
8282
*/
8383
private function networkPing() {
84-
if(!@fsockopen('www.discord.com', 80) || !@fsockopen('www.google.com', 80))
84+
if(!@fsockopen('www.discord.com', 80) && !@fsockopen('www.google.com', 80))
8585
{
8686
Console::printMessage($this->_constants->errors->NETWORK_TIMEOUT);
8787
$this->cancelTimer();

0 commit comments

Comments
 (0)