Skip to content

Commit 9200b45

Browse files
committed
add close status checking before closing
1 parent 053a855 commit 9200b45

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

queue/queue.go

+3
Original file line numberDiff line numberDiff line change
@@ -197,6 +197,9 @@ func (q *queue) closeTopic(topic string) {
197197
if !ok {
198198
return
199199
}
200+
if sub.isClose == 1 {
201+
return
202+
}
200203
if sub.isClose == 0 {
201204
sub.high <- &Message{}
202205
sub.low <- &Message{}

0 commit comments

Comments
 (0)