mirror of
https://github.com/Rhinemann/IoT-Systems.git
synced 2026-03-14 20:50:39 +02:00
feat: close file
This commit is contained in:
parent
081a2d4240
commit
95176ea467
@ -18,6 +18,8 @@ class FileReader:
|
||||
file_header = next(self.file_reader)
|
||||
|
||||
def stopReading(self, *args, **kwargs):
|
||||
pass
|
||||
if self.file:
|
||||
self.file.close()
|
||||
self.file_reader = None
|
||||
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user