From 22e592fd5bc1693cce5d9dba4f0e5f95ac469d4d Mon Sep 17 00:00:00 2001 From: edip Date: Fri, 4 Jan 2019 09:02:20 +0300 Subject: [PATCH] pam config change for agent id --- src/base/messaging/anonymous_messenger.py | 2 +- src/base/util/util.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/base/messaging/anonymous_messenger.py b/src/base/messaging/anonymous_messenger.py index ac8cb30..e2012da 100644 --- a/src/base/messaging/anonymous_messenger.py +++ b/src/base/messaging/anonymous_messenger.py @@ -123,7 +123,7 @@ class AnonymousMessenger(ClientXMPP): self.logger.info('Rebooting...') #System.Process.kill_by_pid(int(System.Ahenk.get_pid_number())) #sys.exit(2) - #Util.shutdown(); + Util.shutdown(); except Exception as e: self.logger.error('Error Message: {0}.'.format(str(e))) diff --git a/src/base/util/util.py b/src/base/util/util.py index 1012015..a1cd53a 100644 --- a/src/base/util/util.py +++ b/src/base/util/util.py @@ -33,8 +33,8 @@ class Util: @staticmethod def shutdown(): - print("shutting down") - #Util.execute('reboot') + pass + Util.execute('reboot') @staticmethod def create_file(full_path):