Browse Source

clearing bytes of outgoing file so that it doesn`t prevent subsequent file uploads

logicp 5 years ago
parent
commit
49a853cd6f
1 changed files with 1 additions and 0 deletions
  1. 1 0
      client.cpp

+ 1 - 0
client.cpp

@@ -85,6 +85,7 @@ void Client::handleMessages() {
             QVector<QString> args = getArgs(data_string.c_str());
             emit Client::messageReceived(EVENT_UPDATE_TYPE, event, args);
             if (isUploadCompleteEvent(event.toUtf8().constData())) {
+                outgoing_file.clear();
                 std::string operation_string = createOperation("Schedule", m_task);
                 sendEncoded(operation_string);
             }