Skip to content

Commit

Permalink
Agent: Fix stop() call for uninitialized ldap server process
Browse files Browse the repository at this point in the history
  • Loading branch information
mssalvatore committed Jan 12, 2023
1 parent c402496 commit 48a7d39
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -195,6 +195,9 @@ def stop(self, timeout: Optional[float] = None):
terminates. If `timeout` is a positive floating point number, this method
blocks for at most `timeout` seconds.
"""
if self._server_process is None:
return

if self._server_process.is_alive():
logger.debug("Stopping LDAP exploit server")

Expand Down

0 comments on commit 48a7d39

Please sign in to comment.