Skip to content

Commit 3c0aad1

Browse files
committed
Replaced condition for infinate update loop
1 parent eb50fcd commit 3c0aad1

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

bot.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -497,7 +497,7 @@ async def data_loop(self):
497497
await self.wait_until_ready()
498498
self.owner = (await self.application_info()).owner
499499

500-
while True:
500+
while not self.is_closed():
501501
data = {
502502
"owner_name": str(self.owner),
503503
"owner_id": self.owner.id,
@@ -517,7 +517,6 @@ async def data_loop(self):
517517
}
518518

519519
await self.modmail_api.post_metadata(data)
520-
521520
await sleep(3600)
522521

523522
async def autoupdate_loop(self):

0 commit comments

Comments
 (0)