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
6211ee46
Commit
6211ee46
authored
9 years ago
by
Jeromy
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
close channels and allow daemon to shutdown
License: MIT Signed-off-by:
Jeromy
<
jeromyj@gmail.com
>
parent
7d254aef
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 @
6211ee46
...
...
@@ -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
}
...
...
This diff is collapsed.
Click to expand it.
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