Skip to content

Commit

Permalink
We missed this as part of #1515
Browse files Browse the repository at this point in the history
We need to check for the channel exception on both sides of the channel.
  • Loading branch information
tmeasday committed Aug 22, 2017
1 parent 8f4d05a commit e6062b2
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion app/react-native/src/manager/provider.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,11 @@ export default class ReactProvider extends Provider {
super();
this.options = options;
this.selection = null;
this.channel = addons.getChannel();
try {
this.channel = addons.getChannel();
} catch (err) {
this.channel = undefined;
}

const secured = options.secured;
const websocketType = secured ? 'wss' : 'ws';
Expand Down

0 comments on commit e6062b2

Please sign in to comment.