Skip to content

Commit

Permalink
Merge pull request #34 from ScmTble/master
Browse files Browse the repository at this point in the history
fix RabbitListener stop bug
  • Loading branch information
kevwan authored Oct 20, 2022
2 parents 6129bd5 + 9719bb2 commit 3e19b1f
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 3e19b1f

Please sign in to comment.