Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
earlbread opened this issue Apr 10, 2020 · 1 comment · Fixed by #864
Assignees
Labels
bug Something isn't working

Comments

@earlbread
Copy link
Contributor

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.

@earlbread earlbread added the bug Something isn't working label Apr 10, 2020
@longfin longfin self-assigned this May 7, 2020
@longfin longfin linked a pull request May 7, 2020 that will close this issue
@longfin
Copy link
Member

longfin commented May 12, 2020

I guess it had completed by #864

@longfin longfin closed this as completed May 12, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants