fix(m9/T24b): try/finally around _busy in move dialog (circuit-teardown lock)
This commit is contained in:
+7
-1
@@ -88,8 +88,9 @@
|
|||||||
|
|
||||||
_busy = true;
|
_busy = true;
|
||||||
_error = null;
|
_error = null;
|
||||||
|
try
|
||||||
|
{
|
||||||
var result = await MoveService.MoveAsync(ConnectionId, target);
|
var result = await MoveService.MoveAsync(ConnectionId, target);
|
||||||
_busy = false;
|
|
||||||
|
|
||||||
if (result.Success)
|
if (result.Success)
|
||||||
{
|
{
|
||||||
@@ -102,4 +103,9 @@
|
|||||||
_error = result.Error ?? "Move failed.";
|
_error = result.Error ?? "Move failed.";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
finally
|
||||||
|
{
|
||||||
|
_busy = false;
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user