mirror of https://github.com/calzoneman/sync.git
Minor fix
This commit is contained in:
parent
28807344bc
commit
8bef7924b2
|
@ -26,9 +26,10 @@ export default class FrontendManager {
|
|||
if (this.frontendConnections.hasOwnProperty(endpoint)) {
|
||||
if (this.frontendProxiedSockets.hasOwnProperty(endpoint)) {
|
||||
logger.warn(`Frontend ${endpoint} disconnected`);
|
||||
this.frontendProxiedSockets[endpoint].forEach(proxySocket => {
|
||||
for (const key in this.frontendProxiedSockets[endpoint]) {
|
||||
const proxySocket = this.frontendProxiedSockets[endpoint][key];
|
||||
proxySocket.onProxiedEventReceived('disconnect');
|
||||
});
|
||||
}
|
||||
delete this.frontendProxiedSockets[endpoint];
|
||||
}
|
||||
delete this.frontendConnections[endpoint];
|
||||
|
|
Loading…
Reference in New Issue