chansrv: sound: prevent an infinite loop when the connection with pulse audio is closed improperly