mirror of
https://git.sekbaer.de/Friendica/friendica.git
synced 2025-06-11 01:24:27 +02:00
Fix some warnings
This commit is contained in:
parent
8e0a3d00bb
commit
2335af9bf2
3 changed files with 12 additions and 6 deletions
|
@ -105,8 +105,12 @@ class Jetstream
|
|||
$last_timeout = time();
|
||||
while (true) {
|
||||
try {
|
||||
$message = $this->client->receive();
|
||||
$data = json_decode($message);
|
||||
$message = @$this->client->receive();
|
||||
if (empty($message)) {
|
||||
$this->logger->notice('Empty message received');
|
||||
break;
|
||||
}
|
||||
$data = json_decode($message);
|
||||
if (is_object($data)) {
|
||||
$timestamp = $data->time_us;
|
||||
$this->route($data);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue