mirror of
https://github.com/edumeet/edumeet.git
synced 2026-01-23 02:34:58 +00:00
fix crash when closing queue (potential memory leak as well)
This commit is contained in:
parent
b124995666
commit
89114280f0
1 changed files with 6 additions and 3 deletions
|
|
@ -296,9 +296,12 @@ class Room extends EventEmitter
|
|||
logger.debug('close()');
|
||||
|
||||
this._closed = true;
|
||||
|
||||
this._queue.close();
|
||||
|
||||
if (this._queue && (typeof this._queue.close === 'function')) {
|
||||
this._queue.close();
|
||||
}
|
||||
if (this._queue && (typeof this._queue.stop === 'function')) {
|
||||
this._queue.stop();
|
||||
}
|
||||
this._queue = null;
|
||||
|
||||
if (this._selfDestructTimeout)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue