Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
dms3
go-dms3
Commits
594c1bfa
Commit
594c1bfa
authored
Jun 19, 2015
by
Juan Batiz-Benet
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #1405 from ipfs/daemon-shutdown
close channels and allow daemon to shutdown
parents
7d254aef
6211ee46
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
0 deletions
+2
-0
cmd/ipfs/daemon.go
cmd/ipfs/daemon.go
+2
-0
No files found.
cmd/ipfs/daemon.go
View file @
594c1bfa
...
...
@@ -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
}
...
...
@@ -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
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment