Browse Source

Close file after get request was processed

anon 5 years ago
parent
commit
60ea2a86b6
1 changed files with 2 additions and 0 deletions
  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();
           }
         }
       }