This commit is contained in:
Tanguy 2023-10-13 15:12:18 +02:00
parent ba11da6f20
commit 0c96e8db2d
No known key found for this signature in database
GPG Key ID: 7DD8EC6B6CE6C45E
1 changed files with 0 additions and 7 deletions

View File

@ -357,13 +357,6 @@ proc accept*(self: Sctp): Future[SctpConn] {.async.} =
let conn = await self.dtls.accept()
var res = SctpConn.new(conn)
res.conn = await self.dtls.accept()
let
msg = await res.conn.read()
data = usrsctp_dumppacket(unsafeAddr msg[0], uint(msg.len), SCTP_DUMP_INBOUND)
if data != nil:
trace "Receive connection", remoteAddress = res.conn.raddr, data = data.packetPretty()
usrsctp_freedumpbuffer(data)
# sctp.sentAddress = raddr
usrsctp_register_address(cast[pointer](res))
res.readLoop = res.readLoopProc()
res.acceptEvent.clear()