mirror of
https://github.com/minio/minio.git
synced 2025-11-10 22:10:12 -05:00
Closing channel when http server dies
Fixing deadlock on error
This commit is contained in:
@@ -16,4 +16,5 @@ func start(ctrlChannel <-chan string, errorChannel chan<- error, router http.Han
|
||||
log.Println("Starting HTTP Server")
|
||||
err := http.ListenAndServe(":8080", router)
|
||||
errorChannel <- err
|
||||
close(errorChannel)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user