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
38182447
Commit
38182447
authored
Oct 02, 2014
by
Juan Batiz-Benet
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Bugfix: daemon wg sync
parent
ee1ba164
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
2 deletions
+4
-2
cmd/ipfs/init.go
cmd/ipfs/init.go
+1
-1
daemon/daemon.go
daemon/daemon.go
+3
-1
No files found.
cmd/ipfs/init.go
View file @
38182447
...
...
@@ -2,9 +2,9 @@ package main
import
(
"encoding/base64"
"path/filepath"
"errors"
"os"
"path/filepath"
"github.com/jbenet/go-ipfs/Godeps/_workspace/src/github.com/gonuts/flag"
"github.com/jbenet/go-ipfs/Godeps/_workspace/src/github.com/jbenet/commander"
...
...
daemon/daemon.go
View file @
38182447
...
...
@@ -94,7 +94,10 @@ func (dl *DaemonListener) Listen() {
panic
(
"attempting to listen on a closed daemon Listener"
)
}
// add ourselves to workgroup. and remove ourselves when done.
dl
.
wg
.
Add
(
1
)
defer
dl
.
wg
.
Done
()
log
.
Info
(
"daemon listening"
)
for
{
conn
,
err
:=
dl
.
list
.
Accept
()
...
...
@@ -102,7 +105,6 @@ func (dl *DaemonListener) Listen() {
if
!
dl
.
closed
{
log
.
Warning
(
"DaemonListener Accept: %v"
,
err
)
}
dl
.
lk
.
Close
()
return
}
go
dl
.
handleConnection
(
conn
)
...
...
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