mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-07-20 18:18:56 +00:00
fix(socket) prevent memory leak
This commit is contained in:
parent
94f8b3598e
commit
d563d34a7a
1 changed files with 3 additions and 0 deletions
|
|
@ -264,6 +264,9 @@
|
|||
});
|
||||
|
||||
cmd.on('error', Util.retFalse);
|
||||
cmd.on('close', function (code) {
|
||||
cmd = null;
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue