fix: missing return

This commit is contained in:
Derrick Hammer 2023-07-22 08:31:59 -04:00
parent 0747c0b31f
commit 8380254638
Signed by: pcfreak30
GPG Key ID: C997C339BE476FF2
1 changed files with 2 additions and 0 deletions

View File

@ -233,6 +233,7 @@ export class Socket extends Client {
([exists]: ErrTuple) => {
if (!exists) {
logErr("tried to write to closed socket");
return;
}
this.callModule("socketWrite", { id: this.id, message });
},
@ -245,6 +246,7 @@ export class Socket extends Client {
([exists]: ErrTuple) => {
if (!exists) {
logErr("tried to close a closed socket");
return;
}
this.callModule("socketClose", { id: this.id });
},