Skip to content

Commit

Permalink
fix the isRunning channel
Browse files Browse the repository at this point in the history
  • Loading branch information
namtzigla committed Jan 29, 2025
1 parent be62e37 commit 8dfa855
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -61,8 +61,12 @@ public boolean isRunning() {
// log.debug("channel is null, JobStream is not running");
return false;
}
if (channel.isTerminated()) return false;
if (channel.isShutdown()) return false;
return true;
// log.debug("channel {} shutdown {} terminated {} -> {}", channel, channel.isShutdown(), channel.isTerminated(), !channel.isShutdown() && !channel.isTerminated());
return (!channel.isShutdown() || !channel.isTerminated());
// var ret = !channel.isShutdown() && !channel.isTerminated();
// log.debug("JobStream is running {}", ret);
}

public synchronized void eventStream() {
Expand Down

0 comments on commit 8dfa855

Please sign in to comment.