Skip to content

Commit

Permalink
skip publishAssignEventAsync when disabled
Browse files Browse the repository at this point in the history
  • Loading branch information
heesung-sn committed Oct 23, 2024
1 parent 483c343 commit 3b9e857
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -626,7 +626,7 @@ private long getNextVersionId(ServiceUnitStateData data) {
}

public CompletableFuture<String> publishAssignEventAsync(String serviceUnit, String broker) {
if (!validateChannelState(Started, true)) {
if (!validateChannelState(Started, true) || channelState == Disabled) {
return CompletableFuture.failedFuture(
new IllegalStateException("Invalid channel state:" + channelState.name()));
}
Expand Down

0 comments on commit 3b9e857

Please sign in to comment.