[ReactNative] Fix reloading in debug mode sometimes crashes packager
This commit is contained in:
parent
a2dd7fc69f
commit
a1a15bda06
|
@ -34,7 +34,12 @@ function attachToServer(server, path) {
|
|||
|
||||
ws.on('message', function(message) {
|
||||
allClientsExcept(ws).forEach(function(cn) {
|
||||
cn.send(message);
|
||||
try {
|
||||
// Sometimes this call throws 'not opened'
|
||||
cn.send(message);
|
||||
} catch(e) {
|
||||
console.warn('WARN: ' + e.message);
|
||||
}
|
||||
});
|
||||
});
|
||||
});
|
||||
|
|
Loading…
Reference in New Issue