From bb998674c6f5f4c5c2ae5cb3d14cc4ad333a2db2 Mon Sep 17 00:00:00 2001 From: dec05eba <0xdec05eba@gmail.com> 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