Fixed main thread check. Comparing queues considered unsafe, see SDK documentation