Fix crash due to conneciton error
Error report: b6ef904c-b670-41e8-b586-fab52a31006d
This commit is contained in:
@@ -55,9 +55,11 @@ export class ConnectionManager {
|
|||||||
|
|
||||||
public removeConnection(hash: string) {
|
public removeConnection(hash: string) {
|
||||||
const connection = this.connections[hash]
|
const connection = this.connections[hash]
|
||||||
|
if (connection) {
|
||||||
connection.disconnect()
|
connection.disconnect()
|
||||||
delete this.connections[hash]
|
delete this.connections[hash]
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
public closeAllConnections() {
|
public closeAllConnections() {
|
||||||
Object.keys(this.connections)
|
Object.keys(this.connections)
|
||||||
|
|||||||
Reference in New Issue
Block a user