split the Session.Close(error) in Close() and CloseWithError(error)

This commit is contained in:
Marten Seemann
2018-07-04 17:04:50 +07:00
parent 2bc5b7f532
commit 8b2992a243
22 changed files with 168 additions and 105 deletions

View File

@@ -78,7 +78,7 @@ var _ = Describe("Unidirectional Streams", func() {
sess, err = server.Accept()
Expect(err).ToNot(HaveOccurred())
runReceivingPeer(sess)
sess.Close(nil)
sess.Close()
}()
client, err := quic.DialAddr(serverAddr, nil, qconf)