1
0
Fork 0
mirror of https://gitlab.com/futo-org/fcast.git synced 2025-06-24 21:25:23 +00:00

Receivers: Added null check

This commit is contained in:
Michael Hollister 2025-04-25 15:49:40 -05:00
parent e410e5bd73
commit 7464bc1e51
2 changed files with 2 additions and 2 deletions

View file

@ -48,7 +48,7 @@ export class TcpListenerService {
}
disconnect(connectionId: string) {
this.sessionMap[connectionId].socket.destroy();
this.sessionMap[connectionId]?.socket.destroy();
}
private async handleServerError(err: NodeJS.ErrnoException) {

View file

@ -47,7 +47,7 @@ export class WebSocketListenerService {
}
disconnect(connectionId: string) {
this.sessionMap[connectionId].close();
this.sessionMap[connectionId]?.close();
}
private async handleServerError(err: NodeJS.ErrnoException) {