fix: missing return
This commit is contained in:
parent
0747c0b31f
commit
8380254638
|
@ -233,6 +233,7 @@ export class Socket extends Client {
|
||||||
([exists]: ErrTuple) => {
|
([exists]: ErrTuple) => {
|
||||||
if (!exists) {
|
if (!exists) {
|
||||||
logErr("tried to write to closed socket");
|
logErr("tried to write to closed socket");
|
||||||
|
return;
|
||||||
}
|
}
|
||||||
this.callModule("socketWrite", { id: this.id, message });
|
this.callModule("socketWrite", { id: this.id, message });
|
||||||
},
|
},
|
||||||
|
@ -245,6 +246,7 @@ export class Socket extends Client {
|
||||||
([exists]: ErrTuple) => {
|
([exists]: ErrTuple) => {
|
||||||
if (!exists) {
|
if (!exists) {
|
||||||
logErr("tried to close a closed socket");
|
logErr("tried to close a closed socket");
|
||||||
|
return;
|
||||||
}
|
}
|
||||||
this.callModule("socketClose", { id: this.id });
|
this.callModule("socketClose", { id: this.id });
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in New Issue