From 49c167246a53b29d9d1586e00bb3c158a8d75006 Mon Sep 17 00:00:00 2001 From: dec05eba Date: Sat, 9 Jun 2018 19:20:13 +0200 Subject: Receive correct amount of data --- src/DirectConnection.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/DirectConnection.cpp b/src/DirectConnection.cpp index 8e60c47..37f5b34 100644 --- a/src/DirectConnection.cpp +++ b/src/DirectConnection.cpp @@ -253,7 +253,7 @@ namespace sibs return 0; } - receivedTotalSize += dataAvailableSize; + receivedTotalSize += receivedSize; } Log::error("UDT: Received too much data, ignoring..."); -- cgit v1.2.3