Skip to content

Commit 66a1c10

Browse files
Martin LercherMartin Lercher
authored andcommitted
BugFix - Task start logic
1 parent c29b5c9 commit 66a1c10

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/JsonRpc/ProcessScheduler.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,8 @@ public void Add(RequestProcessType type, Func<Task> request) {
2929
private Task Start(Func<Task> request)
3030
{
3131
var t = request();
32-
t.Start();
32+
if (!t.IsCompleted)
33+
t.Start();
3334
return t;
3435
}
3536

0 commit comments

Comments
 (0)