Skip to content

Commit b287cb0

Browse files
authored
proxy: handles ListenServe error in api proxy (textileio#153)
1 parent 8ee45a2 commit b287cb0

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

api/server/server.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -264,7 +264,9 @@ func NewServer(conf Config) (*Server, error) {
264264
}()
265265

266266
go func() {
267-
grpcWebProxy.ListenAndServe()
267+
if err := grpcWebProxy.ListenAndServe(); err != nil && err != http.ErrServerClosed {
268+
log.Errorf("error starting proxy: %v", err)
269+
}
268270
}()
269271

270272
g.Start()

0 commit comments

Comments
 (0)