Fixes 'Deadlock between GUI and ReceiveStream' reported by Ingo Bauersachs.