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
6 changes: 6 additions & 0 deletions htpclient/initialize.py
Original file line number Diff line number Diff line change
Expand Up @@ -153,6 +153,12 @@ def __update_information(self):
self.__update_information()
elif ans['response'] != 'SUCCESS':
logging.error("Error from server: " + str(ans))
if ans['message'] == 'Invalid token!':
logging.fatal("Token is invalid, either place the correct token in the config or re-register the agent")
if os.path.exists("lock.pid"):
os.unlink("lock.pid")
sys.exit(-1)
pass
sleep(5)
self.__update_information()

Expand Down