Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 5ab9483

Browse files
committedJun 20, 2015
close channels and allow daemon to shutdown
License: MIT Signed-off-by: Jeromy <jeromyj@gmail.com>
1 parent 370df8f commit 5ab9483

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed
 

‎cmd/ipfs/daemon.go

+2
Original file line numberDiff line numberDiff line change
@@ -300,6 +300,7 @@ func serveHTTPApi(req cmds.Request) (error, <-chan error) {
300300
errc := make(chan error)
301301
go func() {
302302
errc <- corehttp.Serve(node, apiLis.NetListener(), opts...)
303+
close(errc)
303304
}()
304305
return nil, errc
305306
}
@@ -355,6 +356,7 @@ func serveHTTPGateway(req cmds.Request) (error, <-chan error) {
355356
errc := make(chan error)
356357
go func() {
357358
errc <- corehttp.Serve(node, gwLis.NetListener(), opts...)
359+
close(errc)
358360
}()
359361
return nil, errc
360362
}

0 commit comments

Comments
 (0)
Please sign in to comment.