mirror of
https://git.joinsharkey.org/Sharkey/Sharkey.git
synced 2024-12-24 05:13:09 +02:00
✌️
This commit is contained in:
parent
aec3b33326
commit
918f2cf6cf
1 changed files with 2 additions and 0 deletions
|
@ -79,6 +79,8 @@ export default abstract class StreamManager<T extends Connection> extends EventE
|
|||
// また直ぐに再利用される可能性があるので、一定時間待ち、
|
||||
// 新たな利用者が現れなければコネクションを切断する
|
||||
this.disposeTimerId = setTimeout(() => {
|
||||
this.disposeTimerId = null;
|
||||
|
||||
this.connection.close();
|
||||
this.connection = null;
|
||||
}, 3000);
|
||||
|
|
Loading…
Reference in a new issue