Skip to content

Commit

Permalink
Fix nats rpc server shutdown
Browse files Browse the repository at this point in the history
  • Loading branch information
Andre Hahn committed May 18, 2018
1 parent 507c0c7 commit 7de331f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions cluster/nats_rpc_server.go
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,7 @@ func (ns *NatsRPCServer) SubscribeToUserMessages(uid string, svType string) (*na

func (ns *NatsRPCServer) handleMessages() {
defer (func() {
ns.conn.Close()
close(ns.unhandledReqCh)
close(ns.subChan)
close(ns.bindingsChan)
Expand Down

0 comments on commit 7de331f

Please sign in to comment.