Logical error in asynchronous check