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:
parent
e410e5bd73
commit
7464bc1e51
2 changed files with 2 additions and 2 deletions
|
@ -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) {
|
||||
|
|
|
@ -47,7 +47,7 @@ export class WebSocketListenerService {
|
|||
}
|
||||
|
||||
disconnect(connectionId: string) {
|
||||
this.sessionMap[connectionId].close();
|
||||
this.sessionMap[connectionId]?.close();
|
||||
}
|
||||
|
||||
private async handleServerError(err: NodeJS.ErrnoException) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue