Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 2 additions & 3 deletions osquery/TPipe.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ def close(self):
in the same way
"""
if self._handle is not None:
win32pipe.DisconnectNamedPipe(self._handle)
win32file.CloseHandle(self._handle)
self._handle = None


Expand Down Expand Up @@ -227,6 +227,5 @@ def close(self):
attempts are successful
"""
if self._handle is not None:
win32pipe.DisconnectNamedPipe(self._handle)
super(TPipe, self).close()
win32file.CloseHandle(self._handle)
self._handle = None