This commit is contained in:
Daniil Gentili 2018-03-11 15:33:25 +00:00
parent 8c4b65762f
commit 2059070322

View File

@ -639,7 +639,7 @@ trait PeerHandler
}
$this->qres[] = $res;
}
if ($this->last_stored < time() && !$force) {
if ($this->last_stored > time() && !$force) {
return false;
}
if (empty($this->qres)) {
@ -656,7 +656,7 @@ trait PeerHandler
$this->qres = [];
$this->last_stored = time() + 10;
} catch (\danog\MadelineProto\Exception $e) {
\danog\MadelineProto\Logger::log($e->getMessage(), \danog\MadelineProto\Logger::VERBOSE);
\danog\MadelineProto\Logger::log("======= COULD NOT STORE IN DB DUE TO ".$e->getMessage()." =============", \danog\MadelineProto\Logger::VERBOSE);
}
}