Skip to content

Commit

Permalink
Fix eslint errors
Browse files Browse the repository at this point in the history
  • Loading branch information
zalmoxisus committed Sep 8, 2016
1 parent cc9aa2b commit 33715dc
Showing 1 changed file with 13 additions and 13 deletions.
26 changes: 13 additions & 13 deletions src/devTools.js
Original file line number Diff line number Diff line change
Expand Up @@ -172,6 +172,19 @@ function login() {
relay('START');
}

function stop(keepConnected) {
started = false;
isMonitored = false;
if (!socket) return;
socket.destroyChannel(channel);
if (keepConnected) {
socket.off(channel, handleMessages);
} else {
socket.off();
socket.disconnect();
}
}

function start() {
if (started || socket && socket.getState() === socket.CONNECTING) return;

Expand All @@ -187,19 +200,6 @@ function start() {
});
}

function stop(keepConnected) {
started = false;
isMonitored = false;
if (!socket) return;
socket.destroyChannel(channel);
if (keepConnected) {
socket.off(channel, handleMessages);
} else {
socket.off();
socket.disconnect();
}
}

function checkForReducerErrors(liftedState = store.liftedStore.getState()) {
if (liftedState.computedStates[liftedState.currentStateIndex].error) {
if (started) relay('STATE', filterStagedActions(liftedState, filters));
Expand Down

0 comments on commit 33715dc

Please sign in to comment.