mirror of
https://github.com/status-im/react-native.git
synced 2025-02-25 15:45:32 +00:00
[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…
x
Reference in New Issue
Block a user