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
p2p
go-p2p-swarm
Commits
511d7a82
Commit
511d7a82
authored
8 years ago
by
Jeromy
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
increase refcount before dropping dialsLk initially
parent
41d999eb
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
dial_sync.go
dial_sync.go
+3
-1
No files found.
dial_sync.go
View file @
511d7a82
...
...
@@ -36,7 +36,6 @@ type activeDial struct {
}
func
(
dr
*
activeDial
)
wait
(
ctx
context
.
Context
)
(
*
Conn
,
error
)
{
dr
.
incref
()
defer
dr
.
decref
()
select
{
case
<-
dr
.
waitch
:
...
...
@@ -97,6 +96,9 @@ func (ds *DialSync) getActiveDial(p peer.ID) *activeDial {
go
actd
.
start
(
adctx
)
}
// increase ref count before dropping dialsLk
actd
.
incref
()
return
actd
}
...
...
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