diff options
-rw-r--r-- | src/fifo.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/fifo.py b/src/fifo.py index 7db4b160..983b21e4 100644 --- a/src/fifo.py +++ b/src/fifo.py @@ -30,9 +30,10 @@ class OpenTrick(threading.Thread): def __init__(self, path): threading.Thread.__init__(self) self.path = path + self.fd = None def run(self): - open(self.path, 'r', encoding='utf-8').close() + self.fd = open(self.path, 'r', encoding='utf-8') class Fifo(object): |