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
99636b57
Commit
99636b57
authored
Dec 24, 2014
by
Juan Batiz-Benet
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
net/id: handle error case
parent
923c082d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
3 deletions
+4
-3
net/id.go
net/id.go
+4
-3
No files found.
net/id.go
View file @
99636b57
...
...
@@ -51,10 +51,11 @@ func (ids *IDService) IdentifyConn(c Conn) {
if
err
!=
nil
{
log
.
Error
(
"network: unable to open initial stream for %s"
,
ProtocolIdentify
)
log
.
Event
(
ids
.
Network
.
CtxGroup
()
.
Context
(),
"IdentifyOpenFailed"
,
c
.
RemotePeer
())
}
}
else
{
// ok give the response to our handler.
ids
.
ResponseHandler
(
s
)
// ok give the response to our handler.
ids
.
ResponseHandler
(
s
)
}
ids
.
currmu
.
Lock
()
ch
,
found
:=
ids
.
currid
[
c
]
...
...
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