fix: connect and disconnect broker
This commit is contained in:
parent
532edc786f
commit
b7e57d6192
4
http.go
4
http.go
@ -251,9 +251,11 @@ func (h *httpServer) Start() error {
|
|||||||
go func() {
|
go func() {
|
||||||
ch := <-h.exit
|
ch := <-h.exit
|
||||||
ch <- ln.Close()
|
ch <- ln.Close()
|
||||||
|
|
||||||
|
opts.Broker.Disconnect()
|
||||||
}()
|
}()
|
||||||
|
|
||||||
return nil
|
return opts.Broker.Connect()
|
||||||
}
|
}
|
||||||
|
|
||||||
func (h *httpServer) Stop() error {
|
func (h *httpServer) Stop() error {
|
||||||
|
Loading…
Reference in New Issue
Block a user