diff options
author | Simon Rettberg | 2018-05-12 15:37:40 +0200 |
---|---|---|
committer | Simon Rettberg | 2018-05-12 15:37:40 +0200 |
commit | ff5ae5514b69ccdad8c07240aaf1493b9d5287d0 (patch) | |
tree | 7f4b6a55d43910b252769332ca279711df0e158a /dozentenmodul/src/main | |
parent | [server] Support server side chunk copying (diff) | |
download | tutor-module-ff5ae5514b69ccdad8c07240aaf1493b9d5287d0.tar.gz tutor-module-ff5ae5514b69ccdad8c07240aaf1493b9d5287d0.tar.xz tutor-module-ff5ae5514b69ccdad8c07240aaf1493b9d5287d0.zip |
[client] Fix call
Diffstat (limited to 'dozentenmodul/src/main')
-rw-r--r-- | dozentenmodul/src/main/java/org/openslx/dozmod/filetransfer/AsyncHashGenerator.java | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/dozentenmodul/src/main/java/org/openslx/dozmod/filetransfer/AsyncHashGenerator.java b/dozentenmodul/src/main/java/org/openslx/dozmod/filetransfer/AsyncHashGenerator.java index 23846860..fd488371 100644 --- a/dozentenmodul/src/main/java/org/openslx/dozmod/filetransfer/AsyncHashGenerator.java +++ b/dozentenmodul/src/main/java/org/openslx/dozmod/filetransfer/AsyncHashGenerator.java @@ -15,6 +15,7 @@ import java.util.concurrent.LinkedBlockingQueue; import org.apache.log4j.Logger; import org.apache.thrift.TException; import org.openslx.bwlp.thrift.iface.TInvalidTokenException; +import org.openslx.dozmod.thrift.Session; import org.openslx.filetransfer.util.FileChunk; import org.openslx.thrifthelper.ThriftManager; import org.openslx.util.QuickTimer; @@ -217,7 +218,8 @@ public class AsyncHashGenerator extends Thread { if (uploadToken == null || blockHashes.isEmpty()) // No token yet, cannot submit, or empty list return true; try { - ThriftManager.getSatClient().updateBlockHashes(uploadToken, blockHashes); + ThriftManager.getSatClient().updateBlockHashes(uploadToken, blockHashes, + Session.getSatelliteToken()); } catch (TInvalidTokenException e) { LOGGER.warn("Cannot send hashList to satellite: Sat claims uploadToken is invalid!"); isCanceled = true; |