We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 10f7185 commit b7743c5Copy full SHA for b7743c5
php/sync/class-sync-queue.php
@@ -673,7 +673,7 @@ public function get_thread_state( $thread ) {
673
$thread_queue = $this->get_thread_queue( $thread );
674
$offset = time() - $thread_queue['ping'];
675
$return = 3; // If autosync is running, default is ready/stalled.
676
- if ( empty( $thread_queue['next'] ) && 0 !== $thread_queue['next'] ) {
+ if ( empty( $thread_queue['next'] ) && empty( $thread_queue['count'] ) ) {
677
$return = 1; // Queue is empty, so nothing to sync, set as ended.
678
} elseif ( ! empty( $thread_queue['ping'] ) && $offset < $this->cron_start_offset ) {
679
$return = 2; // If the last ping is within the time frame, it's still active.
0 commit comments