Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
adam.huang
go-libp2p
Commits
00849f98
Commit
00849f98
authored
Jan 07, 2015
by
Juan Batiz-Benet
Browse files
conn: close fixes
parent
59bb732c
Changes
1
Show whitespace changes
Inline
Side-by-side
net/conn/secure_conn.go
View file @
00849f98
...
@@ -58,11 +58,7 @@ func newSecureConn(ctx context.Context, sk ic.PrivKey, insecure Conn) (Conn, err
...
@@ -58,11 +58,7 @@ func newSecureConn(ctx context.Context, sk ic.PrivKey, insecure Conn) (Conn, err
}
}
func
(
c
*
secureConn
)
Close
()
error
{
func
(
c
*
secureConn
)
Close
()
error
{
if
err
:=
c
.
secure
.
Close
();
err
!=
nil
{
return
c
.
secure
.
Close
()
c
.
insecure
.
Close
()
return
err
}
return
c
.
insecure
.
Close
()
}
}
// ID is an identifier unique to this connection.
// ID is an identifier unique to this connection.
...
...
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