提交 1a76d467 authored 作者: Iñaki Baz Castillo's avatar Iñaki Baz Castillo

2.5.5: Server.js: If a worker crashes make sure _latestWorkerIdx becomes 0.

上级 2d5ccb0e
# Changelog
### 2.5.5
* `Server.js`: If a worker crashes make sure `_latestWorkerIdx` becomes 0.
### 2.5.4
* `server.Room()`: Assign workers incrementally or explicitely via new `workerIdx` argument.
......
......@@ -292,6 +292,10 @@ class Server extends EnhancedEventEmitter
{
this._workers.delete(worker);
// Force last used worker to be 0 to avoid having it pointing to
// a idx that no longer exists after this worker closure.
this._latestWorkerIdx = 0;
if (this._workers.size === 0 && !this._closed)
{
logger.debug('latest Worker closed, closing Server');
......
{
"name": "mediasoup",
"version": "2.5.4",
"version": "2.5.5",
"description": "Cutting Edge WebRTC Video Conferencing",
"author": "Iñaki Baz Castillo <ibc@aliax.net> (https://inakibaz.me)",
"contributors": [
......@@ -36,7 +36,7 @@
"randomatic": "^3.1.1"
},
"devDependencies": {
"eslint": "^5.9.0",
"eslint": "^5.10.0",
"gulp": "^4.0.0",
"gulp-clang-format": "^1.0.27",
"gulp-eslint": "^5.0.0",
......
Markdown 格式
0% 或
您添加了 0 人 到此讨论。请谨慎行事。
请先完成此评论的编辑!
请 注册 或者 后发表评论