fix bug where getusermedia calls were queued forever