fix crash - writing to closed web socket. closes #176
This commit is contained in:
parent
0d6e6cb203
commit
c230081b3c
1 changed files with 4 additions and 1 deletions
|
|
@ -81,7 +81,10 @@ PlayerServer.actions = {
|
|||
} else {
|
||||
key = dbFile.key;
|
||||
}
|
||||
client.sendMessage('importUrl', {id: id, key: key});
|
||||
// client might have disconnected by now
|
||||
try {
|
||||
client.sendMessage('importUrl', {id: id, key: key});
|
||||
} catch (err) {}
|
||||
});
|
||||
},
|
||||
},
|
||||
|
|
|
|||
Loading…
Reference in a new issue