planetarium / libplanet

Blockchain in C#/.NET for on-chain, decentralized gaming
https://docs.libplanet.io/
GNU Lesser General Public License v2.1
510 stars 144 forks source link

System.InvalidOperationException: An attempt was made to transition a task to a final state when it had already completed #847

Closed earlbread closed 4 years ago

earlbread commented 4 years ago
2020-04-09 16:56:19.608 +09:00 [DBG] Unexpected exception occurred during ProcessRuntime(): System.InvalidOperationException: An attempt was made to transition a task to a final state when it had already completed.
   at Libplanet.Net.NetMQTransport.ProcessRequest(MessageRequest req, CancellationToken cancellationToken)
   at Libplanet.Net.NetMQTransport.ProcessRuntime(CancellationToken cancellationToken); retry after 100 ms...

It seems to be caused by reusing TaskCompletionSource when retrying MessageRequest.

longfin commented 4 years ago

I guess it had completed by #864