mirror of
https://gitlab.com/futo-org/fcast.git
synced 2025-06-24 21:25:23 +00:00
Receivers: Fix listener map session tracking
This commit is contained in:
parent
2791357ba3
commit
e8be1a5735
2 changed files with 4 additions and 0 deletions
|
@ -88,6 +88,8 @@ export class TcpListenerService {
|
|||
if (index != -1) {
|
||||
this.sessions.splice(index, 1);
|
||||
}
|
||||
|
||||
this.sessionMap.delete(session.sessionId);
|
||||
this.emitter.emit('disconnect', { sessionId: session.sessionId, type: 'tcp', data: { address: socket.remoteAddress, port: socket.remotePort }});
|
||||
});
|
||||
|
||||
|
|
|
@ -93,6 +93,8 @@ export class WebSocketListenerService {
|
|||
if (index != -1) {
|
||||
this.sessions.splice(index, 1);
|
||||
}
|
||||
|
||||
this.sessionMap.delete(session.sessionId);
|
||||
this.emitter.emit('disconnect', { sessionId: session.sessionId, type: 'ws', data: { url: socket.url }});
|
||||
});
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue