summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/main/java/com/keuin/blame/SubmitWorker.java3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/main/java/com/keuin/blame/SubmitWorker.java b/src/main/java/com/keuin/blame/SubmitWorker.java
index a704c7b..103fc9c 100644
--- a/src/main/java/com/keuin/blame/SubmitWorker.java
+++ b/src/main/java/com/keuin/blame/SubmitWorker.java
@@ -150,6 +150,9 @@ public class SubmitWorker {
var result = work(client, req, batchBuffer, writeImmediately);
switch (result) {
case CONTINUE -> {
+ if (isStopped.get()) {
+ return;
+ }
writeImmediately = false;
}
case RECONNECT -> {