Skip to content

Commit 2ac27c6

Browse files
committed
1.0.7.1 - Probably fix reloading, commiting from cellphone
1 parent b5a5444 commit 2ac27c6

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

cloudbot/bot.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ def stop(self, reason=None, *, restart=False):
151151
logger.debug("Stopping plugin reloader.")
152152
self.reloader.stop()
153153

154-
for connection in self.connections:
154+
for connection in self.connections.values():
155155
if not connection.connected:
156156
# Don't quit a connection that hasn't connected
157157
continue
@@ -161,7 +161,7 @@ def stop(self, reason=None, *, restart=False):
161161

162162
yield from asyncio.sleep(1.0) # wait for 'QUIT' calls to take affect
163163

164-
for connection in self.connections:
164+
for connection in self.connections.values():
165165
if not connection.connected:
166166
# Don't close a connection that hasn't connected
167167
continue

0 commit comments

Comments
 (0)