Fix for audio visualizer that was causing freeze because of trying to pop on a background thread