From b67512d38c6cd7bbc577092894b4eefe137ac7f9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=91=D1=8B=D1=87=D0=BA=D0=BE=D0=B2=20=D0=90=D0=BD=D0=B4?= =?UTF-8?q?=D1=80=D0=B5=D0=B9?= Date: Mon, 4 Sep 2017 08:03:26 +0000 Subject: [PATCH] git-svn-id: svn://db.shs.com.ru/pip@541 12ceb7fc-bf1f-11e4-8940-5bc7170c53b5 --- src_main/io/pibasetransfer.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src_main/io/pibasetransfer.cpp b/src_main/io/pibasetransfer.cpp index e1518f12..8371171b 100644 --- a/src_main/io/pibasetransfer.cpp +++ b/src_main/io/pibasetransfer.cpp @@ -119,7 +119,10 @@ void PIBaseTransfer::received(PIByteArray data) { int s = pm_string.find('+'), s1 = send_queue; while (s <= (int)h.id && s > 0) { send_queue--; - if (s >= 0) pm_string[s] = '-'; + if (s >= 0) { + pm_string[s] = '-'; + bytes_cur -= packet_size; + } send_up = 0; if (send_queue < 0) { send_queue = 0; @@ -319,7 +322,7 @@ bool PIBaseTransfer::send_process() { send_queue = 0; mutex_send.unlock(); piMSleep(10); - state_string = "sending+"; + state_string = "sending more"; while (rtm.elapsed_s() < timeout_) { //piCoutObj << "recovering..."; mutex_session.lock();