Fix type error

pull/1/head
yflory 4 years ago
parent 8cb19cdc76
commit 32669dc099

@ -587,8 +587,8 @@ var factory = function (Util, Hash, CPNetflux, Sortify, nThen, Crypto, Feedback)
// deleted while you are open // deleted while you are open
// emit an event // emit an event
var onChannelError = function (info) { var onChannelError = function (info) {
Feedback.send('ROSTER_CHANNEL_ERROR='+info.type); if (Feedback) { Feedback.send('ROSTER_CHANNEL_ERROR='+(info && info.type)); }
if (info.type === "EUNKNOWN") { if (info && info.type === "EUNKNOWN") {
// chainpad-netflux should recover by itself // chainpad-netflux should recover by itself
return; return;
} }

Loading…
Cancel
Save