소스 검색

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();
           }
         }
       }