From e77012f4d91dfdb45813fb9fe906a7f791ca4fcf Mon Sep 17 00:00:00 2001 From: Rapptz Date: Sun, 29 Jan 2017 20:51:47 -0500 Subject: Make all public is_ functions into methods instead of properties. --- discord/shard.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'discord/shard.py') diff --git a/discord/shard.py b/discord/shard.py index 4ae9768e..7bb3a201 100644 --- a/discord/shard.py +++ b/discord/shard.py @@ -237,7 +237,7 @@ class AutoShardedClient(Client): """ yield from self.launch_shards() - while not self.is_closed: + while not self.is_closed(): pollers = [shard.get_future() for shard in self.shards.values()] yield from asyncio.wait(pollers, loop=self.loop, return_when=asyncio.FIRST_COMPLETED) @@ -247,7 +247,7 @@ class AutoShardedClient(Client): Closes the connection to discord. """ - if self.is_closed: + if self.is_closed(): return for shard in self.shards.values(): @@ -255,7 +255,6 @@ class AutoShardedClient(Client): yield from self.http.close() self._closed.set() - self._is_ready.clear() @asyncio.coroutine def change_presence(self, *, game=None, status=None, afk=False, shard_id=None): -- cgit v1.2.3