Skip to content

Commit

Permalink
Restored a thing from an earlier commit 'cause I think it's the right…
Browse files Browse the repository at this point in the history
… way
  • Loading branch information
Lester Covey committed Apr 10, 2022
1 parent dd479df commit 9a19c9e
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -510,8 +510,12 @@ async unsafe fn read_ws(
}
})
.await;
APP.job_state_set(JobState::Err, true);
APP.job_log_add(CONNECTION_DROPPED_ERROR)
// TODO:
// This is from an earlier commit, is it ok?
if let AppState::Chat(_) = APP.state {
APP.job_state_set(JobState::Err, true);
APP.job_log_add(CONNECTION_DROPPED_ERROR)
}
}

/// Daemon for sending messages from queue
Expand Down

0 comments on commit 9a19c9e

Please sign in to comment.