Skip to content

Commit

Permalink
Merge pull request #1405 from ipfs/daemon-shutdown
Browse files Browse the repository at this point in the history
close channels and allow daemon to shutdown
  • Loading branch information
jbenet committed Jun 20, 2015
2 parents 7d254ae + 6211ee4 commit 594c1bf
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions cmd/ipfs/daemon.go
Original file line number Diff line number Diff line change
Expand Up @@ -300,6 +300,7 @@ func serveHTTPApi(req cmds.Request) (error, <-chan error) {
errc := make(chan error)
go func() {
errc <- corehttp.Serve(node, apiLis.NetListener(), opts...)
close(errc)
}()
return nil, errc
}
Expand Down Expand Up @@ -355,6 +356,7 @@ func serveHTTPGateway(req cmds.Request) (error, <-chan error) {
errc := make(chan error)
go func() {
errc <- corehttp.Serve(node, gwLis.NetListener(), opts...)
close(errc)
}()
return nil, errc
}
Expand Down

0 comments on commit 594c1bf

Please sign in to comment.