Fix GCUnsafe2 warning

This commit is contained in:
Mark Spanbroek 2021-01-12 16:21:39 +01:00 committed by markspanbroek
parent 9e755eb65f
commit 5bb0afe175
1 changed files with 2 additions and 2 deletions

View File

@ -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) =