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-kad-dht
Commits
64b46c1d
Commit
64b46c1d
authored
Jan 08, 2018
by
Steven Allen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avoid removing message senders when still connected
parent
36ae474b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
7 deletions
+7
-7
notif.go
notif.go
+7
-7
No files found.
notif.go
View file @
64b46c1d
...
...
@@ -80,14 +80,14 @@ func (nn *netNotifiee) Disconnected(n inet.Network, v inet.Conn) {
p
:=
v
.
RemotePeer
()
func
()
{
dht
.
plk
.
Lock
()
defer
dht
.
plk
.
Unlock
()
dht
.
plk
.
Lock
()
defer
dht
.
plk
.
Unlock
()
if
dht
.
host
.
Network
()
.
Connectedness
(
p
)
==
inet
.
Connected
{
// We're still connected.
return
}
if
dht
.
host
.
Network
()
.
Connectedness
(
p
)
!=
inet
.
Connected
{
dht
.
routingTable
.
Remove
(
p
)
}
}()
dht
.
routingTable
.
Remove
(
p
)
dht
.
smlk
.
Lock
()
defer
dht
.
smlk
.
Unlock
()
...
...
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