From 84184221ad1a3ef8c133e1663490726d9a9f8973 Mon Sep 17 00:00:00 2001 From: cheatfate Date: Sun, 21 Oct 2018 21:00:15 +0300 Subject: [PATCH] Fix #47. --- eth_p2p/blockchain_sync.nim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/eth_p2p/blockchain_sync.nim b/eth_p2p/blockchain_sync.nim index a7d7d86..4d0f30a 100644 --- a/eth_p2p/blockchain_sync.nim +++ b/eth_p2p/blockchain_sync.nim @@ -288,7 +288,7 @@ proc onPeerConnected(ctx: SyncContext, peer: Peer) = debug "New candidate for sync", peer discard let f = ctx.startSyncWithPeer(peer) - f.callback = proc(data: pointer) = + f.callback = proc(data: pointer) {.gcsafe.} = if f.failed: error "startSyncWithPeer failed", msg = f.readError.msg, peer