summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSimon Rettberg2024-02-07 16:18:30 +0100
committerSimon Rettberg2024-02-07 16:18:30 +0100
commitf357d06245784d7f3589a6dd220b995962c86b24 (patch)
tree75d6814a6ee45e772ad22ced5ffe53d5efbcb2a7
parentThrift: Avoid creating TWrapper for null-client (diff)
downloadmaster-sync-shared-f357d06245784d7f3589a6dd220b995962c86b24.tar.gz
master-sync-shared-f357d06245784d7f3589a6dd220b995962c86b24.tar.xz
master-sync-shared-f357d06245784d7f3589a6dd220b995962c86b24.zip
[filetransfer] Set state to WORKING when using local copying
-rw-r--r--src/main/java/org/openslx/filetransfer/util/IncomingTransferBase.java3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/main/java/org/openslx/filetransfer/util/IncomingTransferBase.java b/src/main/java/org/openslx/filetransfer/util/IncomingTransferBase.java
index 0f78680..8e68dc2 100644
--- a/src/main/java/org/openslx/filetransfer/util/IncomingTransferBase.java
+++ b/src/main/java/org/openslx/filetransfer/util/IncomingTransferBase.java
@@ -289,6 +289,9 @@ public abstract class IncomingTransferBase extends AbstractTransfer implements H
if ( sources != null && !sources.isEmpty() ) {
chunks.markLocalCopyCandidates( sources );
}
+ if ( state == TransferState.IDLE ) {
+ state = TransferState.WORKING;
+ }
localCopyManager.trigger();
}