Minor fix

This commit is contained in:
calzoneman 2016-01-01 18:28:53 -08:00
parent 28807344bc
commit 8bef7924b2
1 changed files with 3 additions and 2 deletions

View File

@ -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];