From dcdba865bbefaa01bc55081a13d571e14952fb68 Mon Sep 17 00:00:00 2001 From: Shiz Date: Sun, 16 Feb 2014 01:52:33 +0100 Subject: [PATCH] Hi what are functions and how do I call them --- pydle/async.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pydle/async.py b/pydle/async.py index cce29ee..fd5e29a 100644 --- a/pydle/async.py +++ b/pydle/async.py @@ -232,7 +232,7 @@ class EventLoop: """ Run the event loop. """ if not self.running: self.running = True - self.run_thread = threading.current_thread.ident() + self.run_thread = threading.current_thread().ident() self.io_loop.start() self.run_thread = None self.running = False @@ -240,7 +240,7 @@ class EventLoop: def run_with(self, func): """ Run loop, call function, stop loop. If function returns a future, run until the future has been resolved. """ self.running = True - self.run_thread = threading.current_thread.ident() + self.run_thread = threading.current_thread().ident() self.io_loop.run_sync(func) self.run_thread = None self.running = False