Improve update handling
This commit is contained in:
parent
69505c3e8b
commit
2ed2bac6f0
@ -540,10 +540,12 @@ trait ResponseHandler
|
|||||||
}
|
}
|
||||||
if (count($this->pending_updates)) {
|
if (count($this->pending_updates)) {
|
||||||
$this->logger->logger('Parsing pending updates...');
|
$this->logger->logger('Parsing pending updates...');
|
||||||
$updates = $this->pending_updates;
|
foreach (array_keys($this->pending_updates) as $key) {
|
||||||
$this->pending_updates = [];
|
if (isset($this->pending_updates[$key])) {
|
||||||
foreach ($updates as $update) {
|
$updates = $this->pending_updates[$key];
|
||||||
$this->handle_updates($update);
|
unset($this->pending_updates[$key]);
|
||||||
|
$this->handle_updates($updates);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user