Skip to content

Commit

Permalink
修复队列判空函数的判断错误bug
Browse files Browse the repository at this point in the history
  • Loading branch information
Ikaros-521 committed Apr 13, 2024
1 parent ec76496 commit 2ccfc4a
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions utils/audio.py
Original file line number Diff line number Diff line change
Expand Up @@ -120,10 +120,7 @@ def is_audio_queue_empty(self):
flag = 0

# 判断队列是否为空
# if Audio.message_queue.empty():
# flag += 1

if len(Audio.message_queue):
if len(Audio.message_queue) == 0:
flag += 1

if Audio.voice_tmp_path_queue.empty():
Expand Down

0 comments on commit 2ccfc4a

Please sign in to comment.