From 250f807f6efaa6bd0ad4fc780262fee50deffe94 Mon Sep 17 00:00:00 2001 From: Hetian Huo Date: Mon, 3 Jul 2017 16:46:23 +0800 Subject: [PATCH] Update common.py --- itchatmp/controllers/mpapi/base/common.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/itchatmp/controllers/mpapi/base/common.py b/itchatmp/controllers/mpapi/base/common.py index 086c482..0333f2f 100644 --- a/itchatmp/controllers/mpapi/base/common.py +++ b/itchatmp/controllers/mpapi/base/common.py @@ -81,7 +81,7 @@ def maintain_thread(self, firstCallResult=None): self.core.ioLoop.call_later(r['expires_in'] - 30, self.maintain_access_token, None) def maintain_access_token(self, firstCallResult=None): - t = threading.Thread(target=auto_maintain_thread, + t = threading.Thread(target=self.maintain_thread, args=(firstCallResult,)) t.setDaemon(True) t.start()