Skip to content

Commit

Permalink
Add extra check after Deploy to enable runtime if it's not enabled.
Browse files Browse the repository at this point in the history
CartBlanche committed Apr 10, 2024

Verified

This commit was signed with the committer’s verified signature.
mxinden Max Inden
1 parent 5959f7c commit 860592c
Showing 1 changed file with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -92,6 +92,14 @@ private async Task<bool> DeployMeadowAppAsync(CancellationToken cts, TextWriter

throw ex;
}
finally
{
var running = await Meadow.GetMonoRunState(cts);
if (!running)
{
await Meadow?.MonoEnable(true, cts);
}
}

return false;
}

0 comments on commit 860592c

Please sign in to comment.