From 88a6e5bf4b9fc1f91aae1f8486aff5f7f7220e65 Mon Sep 17 00:00:00 2001 From: "Fanani M. Ihsan" Date: Thu, 27 Dec 2018 17:52:11 +0700 Subject: [PATCH] update base --- zk/base.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/zk/base.py b/zk/base.py index af4d0ad..7b48821 100644 --- a/zk/base.py +++ b/zk/base.py @@ -677,6 +677,8 @@ class ZK(object): command = const.CMD_RESTART cmd_response = self.__send_command(command) if cmd_response.get('status'): + self.is_connect = False + self.next_uid = 1 return True else: raise ZKErrorResponse("can't restart device") @@ -714,6 +716,8 @@ class ZK(object): response_size = 1032 cmd_response = self.__send_command(command, command_string, response_size) if cmd_response.get('status'): + self.is_connect = False + self.next_uid = 1 return True else: raise ZKErrorResponse("can't poweroff")