Skip to content

Commit

Permalink
fix RabbitListener stop bug
Browse files Browse the repository at this point in the history
  • Loading branch information
ScmTble authored and ScmTble committed Sep 11, 2022
1 parent c8212f9 commit 9719bb2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rabbitmq/listener.go
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,6 @@ func (q RabbitListener) Start() {

func (q RabbitListener) Stop() {
q.channel.Close()
q.channel.Close()
q.conn.Close()
close(q.forever)
}

0 comments on commit 9719bb2

Please sign in to comment.