mirror of
https://github.com/NuSkooler/enigma-bbs.git
synced 2025-06-06 12:47:13 +02:00
* ClientTerminal now has disconnect() method called by a client when a connection ends thus preventing data to be written after
This commit is contained in:
parent
a5a912f676
commit
6af0861dfe
2 changed files with 19 additions and 3 deletions
|
@ -415,7 +415,13 @@ Client.prototype.startIdleMonitor = function() {
|
|||
};
|
||||
|
||||
Client.prototype.end = function () {
|
||||
this.menuStack.getCurrentModule().leave();
|
||||
this.term.disconnect();
|
||||
|
||||
var currentModule = this.menuStack.getCurrentModule();
|
||||
|
||||
if(currentModule) {
|
||||
currentModule.leave();
|
||||
}
|
||||
|
||||
clearInterval(this.idleCheck);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue