fix: connect and disconnect broker
This commit is contained in:
		
							
								
								
									
										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 { | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user