
During refill thread cleanup shutdown event is posted and we wait for thread to handle the shutdown event and exit. But while posting shutdown event if refill thread is in running state then there is chance of shutdown event not getting handled and thread cleanup will be waiting indefinitely for thread to exit. Change-Id: I45bdad8d6a85b110ed7c7e206d3c79c5c03e9d98 CRs-Fixed: 3599295