Issue #2354371 by eshta: Fix synchronization queue retry checking.