diff options
| author | Rapptz <[email protected]> | 2017-01-29 20:51:47 -0500 |
|---|---|---|
| committer | Rapptz <[email protected]> | 2017-01-29 20:53:17 -0500 |
| commit | e77012f4d91dfdb45813fb9fe906a7f791ca4fcf (patch) | |
| tree | 16b2cd2fcaaea5f09c6c12b3d95bd6f3aac4018d /discord/shard.py | |
| parent | Remove unused Message._handle_upgrades function. (diff) | |
| download | discord.py-e77012f4d91dfdb45813fb9fe906a7f791ca4fcf.tar.xz discord.py-e77012f4d91dfdb45813fb9fe906a7f791ca4fcf.zip | |
Make all public is_ functions into methods instead of properties.
Diffstat (limited to 'discord/shard.py')
| -rw-r--r-- | discord/shard.py | 5 |
1 files changed, 2 insertions, 3 deletions
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): |