Skip to content

Commit 7aed97e

Browse files
committed
Fix thread blocking bug
1 parent 0fc22dc commit 7aed97e

File tree

3 files changed

+9
-3
lines changed

3 files changed

+9
-3
lines changed

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,12 @@ All notable changes to this project will be documented in this file.
44
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
55
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
66

7+
# v2.13.8
8+
9+
### Fixed
10+
11+
- A bug where a thread was blocked from sending messsages when multiple images were uploaded. (This was due to a typo)
12+
713
# v2.13.7
814

915
### Added

bot.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
SOFTWARE.
2323
"""
2424

25-
__version__ = '2.13.7'
25+
__version__ = '2.13.8'
2626

2727
import asyncio
2828
import logging

core/thread.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -500,9 +500,9 @@ async def send(self, message, destination=None,
500500

501501
await destination.send(mentions, embed=embed)
502502
if additional_images:
503-
self.ready = True
504-
await asyncio.gather(*additional_images)
505503
self.ready = False
504+
await asyncio.gather(*additional_images)
505+
self.ready = True
506506

507507
if delete_message:
508508
self.bot.loop.create_task(ignore(message.delete()))

0 commit comments

Comments
 (0)