Skip to content

Commit 1171c6b

Browse files
author
Nick Anderson
committed
bug: fixing windows extensions not sending responses
1 parent cb4df96 commit 1171c6b

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

osquery/TPipe.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,8 @@ def close(self):
3232
in the same way
3333
"""
3434
if self._handle is not None:
35-
win32file.CloseHandle(self._handle)
35+
#win32file.CloseHandle(self._handle)
36+
win32pipe.DisconnectNamedPipe(self._handle)
3637
self._handle = None
3738

3839

@@ -227,6 +228,7 @@ def close(self):
227228
attempts are successful
228229
"""
229230
if self._handle is not None:
230-
win32pipe.DisconnectNamedPipe(self._handle)
231+
#win32pipe.DisconnectNamedPipe(self._handle)
232+
super(TPipe, self).close()
231233
win32file.CloseHandle(self._handle)
232234
self._handle = None

0 commit comments

Comments
 (0)