summaryrefslogtreecommitdiff
path: root/src/main
diff options
context:
space:
mode:
Diffstat (limited to 'src/main')
-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 -> {