mirror of https://github.com/vacp2p/nim-quic.git
Fix GCUnsafe2 warning
This commit is contained in:
parent
9e755eb65f
commit
5bb0afe175
|
@ -14,7 +14,7 @@ type
|
|||
udp: DatagramTransport
|
||||
quic: QuicConnection
|
||||
loop: Future[void]
|
||||
onClose: proc()
|
||||
onClose: proc() {.gcsafe.}
|
||||
closed: AsyncEvent
|
||||
IncomingConnection = ref object of Connection
|
||||
OutgoingConnection = ref object of Connection
|
||||
|
@ -28,7 +28,7 @@ proc `onNewId=`*(connection: Connection, callback: proc(id: ConnectionId)) =
|
|||
proc `onRemoveId=`*(connection: Connection, callback: proc(id: ConnectionId)) =
|
||||
connection.quic.onRemoveId = callback
|
||||
|
||||
proc `onClose=`*(connection: Connection, callback: proc()) =
|
||||
proc `onClose=`*(connection: Connection, callback: proc() {.gcsafe.}) =
|
||||
connection.onClose = callback
|
||||
|
||||
proc startSending(connection: Connection, remote: TransportAddress) =
|
||||
|
|
Loading…
Reference in New Issue