Fixing blocking demux thread