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-quic-transport
Commits
b339443e
Commit
b339443e
authored
Jul 10, 2018
by
Marten Seemann
Browse files
fix close signature
parent
c25d491a
Changes
2
Hide whitespace changes
Inline
Side-by-side
conn.go
View file @
b339443e
...
...
@@ -25,7 +25,7 @@ type conn struct {
var
_
tpt
.
Conn
=
&
conn
{}
func
(
c
*
conn
)
Close
()
error
{
return
c
.
sess
.
Close
(
nil
)
return
c
.
sess
.
Close
()
}
// IsClosed returns whether a connection is fully closed.
...
...
listener.go
View file @
b339443e
...
...
@@ -57,7 +57,7 @@ func (l *listener) Accept() (tpt.Conn, error) {
}
conn
,
err
:=
l
.
setupConn
(
sess
)
if
err
!=
nil
{
sess
.
Close
(
err
)
sess
.
Close
WithError
(
0
,
err
)
continue
}
return
conn
,
nil
...
...
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