mirror of
https://github.com/status-im/nim-libp2p.git
synced 2025-01-11 13:34:26 +00:00
Attempt #4 to fix Appveyor CI freeze.
This commit is contained in:
parent
708dcbd1a1
commit
236c685fb7
@ -131,7 +131,6 @@ type
|
||||
topic*: string
|
||||
handler*: P2PPubSubCallback
|
||||
transp*: StreamTransport
|
||||
loopFut*: Future[void]
|
||||
|
||||
PubSubMessage* = object
|
||||
peer*: PeerID
|
||||
@ -1283,7 +1282,7 @@ proc pubsubSubscribe*(api: DaemonAPI, topic: string,
|
||||
ticket.topic = topic
|
||||
ticket.handler = handler
|
||||
ticket.transp = transp
|
||||
ticket.loopFut = pubsubLoop(api, ticket)
|
||||
asyncCheck pubsubLoop(api, ticket)
|
||||
result = ticket
|
||||
except:
|
||||
await api.closeConnection(transp)
|
||||
|
Loading…
x
Reference in New Issue
Block a user