From 796d6b9cef3ee098672a256adf6c248b046119ce Mon Sep 17 00:00:00 2001 From: Federico Stagni Date: Wed, 5 Jun 2024 16:04:39 +0200 Subject: [PATCH] fix: close open file --- src/DIRAC/Core/DISET/TransferClient.py | 1 + 1 file changed, 1 insertion(+) diff --git a/src/DIRAC/Core/DISET/TransferClient.py b/src/DIRAC/Core/DISET/TransferClient.py index 0791d4027cb..b9a37623950 100755 --- a/src/DIRAC/Core/DISET/TransferClient.py +++ b/src/DIRAC/Core/DISET/TransferClient.py @@ -71,6 +71,7 @@ def sendFile(self, filename, fileId, token=""): retVal = transport.receiveData() return retVal finally: + fileHelper.oFile.close() self._disconnect(trid) def receiveFile(self, filename, fileId, token=""):