提交 7ef805ee authored 作者: Iñaki Baz Castillo's avatar Iñaki Baz Castillo

Minor typo

上级 3dff71d2
......@@ -8,7 +8,7 @@
* Set a proper value for `Producer::FullFrameRequestBlockTimeout` (currently 1 second).
* Check `appData` everywhere.
* Add `gulp lint/format/tidy` also for `worker/test/*`.
* Rethink the auto close of the worker `Transport` when receiving a DTLS CLOSE ALERT (or when it's just TCP and the connection fails...). Yes/no? BTW it's generating some issues because the JS closes the Producer/Transport and gets `request failed [id:84026423, reason:"Consumer/Transport does not exist"]` (because it was already closed due to DTLS ALERT).
......
......@@ -410,7 +410,7 @@ class Peer extends EnhancedEventEmitter
if (!consumer)
throw new Error('Consumer not found');
else if (!transport)
return Promise.reject(new TypeError('Transport not found'));
throw new TypeError('Transport not found');
return consumer.enable(transport, paused, preferredProfile)
.then(() =>
......
Markdown 格式
0% 或
您添加了 0 人 到此讨论。请谨慎行事。
请先完成此评论的编辑!
请 注册 或者 后发表评论