From ff5ae5514b69ccdad8c07240aaf1493b9d5287d0 Mon Sep 17 00:00:00 2001 From: Simon Rettberg Date: Sat, 12 May 2018 15:37:40 +0200 Subject: [client] Fix call --- .../main/java/org/openslx/dozmod/filetransfer/AsyncHashGenerator.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'dozentenmodul/src/main/java') 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; -- cgit v1.2.3-55-g7522