Browse Source

Close file after get request was processed

anon 5 năm trước cách đây
mục cha
commit
60ea2a86b6
1 tập tin đã thay đổi với 2 bổ sung0 xóa
  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();
           }
         }
       }