fix for race condition - https://github.com/openpeer/opjs/issues/76