瀏覽代碼

Close file after get request was processed

anon 5 年之前
父節點
當前提交
60ea2a86b6
共有 1 個文件被更改,包括 2 次插入0 次删除
  1. 2 0
      daemon/src/Server.cpp

+ 2 - 0
daemon/src/Server.cpp

@@ -311,6 +311,8 @@ void con_handler::handle_read_command(const boost::system::error_code &err,
                               placeholders::error,
                               placeholders::bytes_transferred));
             }
+
+            this->getFile.close();
           }
         }
       }