Commit bcc14508 authored by 神楽坂玲奈's avatar 神楽坂玲奈

fix

parent 73ceaafc
...@@ -382,10 +382,11 @@ export class AppsService { ...@@ -382,10 +382,11 @@ export class AppsService {
return return
} }
let connection: Connection | undefined = this.connections.get(app); let connection = this.connections.get(app);
if (connection) { if (connection) {
connection.connection.close(); connection.connection.close();
} }
console.log(server.url);
connection = {connection: new WebSocket(server.url), address: null}; connection = {connection: new WebSocket(server.url), address: null};
let id: Timer | null; let id: Timer | null;
this.connections.set(app, connection); this.connections.set(app, connection);
...@@ -395,7 +396,7 @@ export class AppsService { ...@@ -395,7 +396,7 @@ export class AppsService {
let [address, port] = args.split(':'); let [address, port] = args.split(':');
switch (action) { switch (action) {
case 'LISTEN': case 'LISTEN':
(<Connection>connection).address = args; connection!.address = args;
this.ref.tick(); this.ref.tick();
break; break;
case 'CONNECT': case 'CONNECT':
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment