aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Visual_Studio/PPC/Tango.PPC.Common/MachineUpdate
diff options
context:
space:
mode:
authorRoy Ben Shabat <Roy.mail.net@gmail.com>2020-09-29 17:44:50 +0300
committerRoy Ben Shabat <Roy.mail.net@gmail.com>2020-09-29 17:44:50 +0300
commit74cf0b226d0ed2b8ae425e1843f5152504d98888 (patch)
tree2cf210669db0918946c2bea53493f0f0eafcaa93 /Software/Visual_Studio/PPC/Tango.PPC.Common/MachineUpdate
parentfddc07eece13c6676078e17b7e925ef70c6e70cb (diff)
downloadTango-74cf0b226d0ed2b8ae425e1843f5152504d98888.tar.gz
Tango-74cf0b226d0ed2b8ae425e1843f5152504d98888.zip
Fixed update manager PPC not allowing db updates when machine is disconnected
Diffstat (limited to 'Software/Visual_Studio/PPC/Tango.PPC.Common/MachineUpdate')
-rw-r--r--Software/Visual_Studio/PPC/Tango.PPC.Common/MachineUpdate/MachineUpdateManager.cs4
1 files changed, 2 insertions, 2 deletions
diff --git a/Software/Visual_Studio/PPC/Tango.PPC.Common/MachineUpdate/MachineUpdateManager.cs b/Software/Visual_Studio/PPC/Tango.PPC.Common/MachineUpdate/MachineUpdateManager.cs
index 4f8be0a6e..0ad9b411e 100644
--- a/Software/Visual_Studio/PPC/Tango.PPC.Common/MachineUpdate/MachineUpdateManager.cs
+++ b/Software/Visual_Studio/PPC/Tango.PPC.Common/MachineUpdate/MachineUpdateManager.cs
@@ -970,9 +970,9 @@ namespace Tango.PPC.Common.MachineUpdate
{
LogManager.Log("Starting database update...");
- if (!_machineProvider.MachineOperator.CanPrint)
+ if (_machineProvider.MachineOperator.IsPrinting)
{
- throw LogManager.Log(new InvalidOperationException($"Could not perform an update while the machine is in {_machineProvider.MachineOperator.Status} status."));
+ throw LogManager.Log(new InvalidOperationException($"Could not perform a database update while the machine is dyeing."));
}
UpdateProgress("Updating Database", "Initializing...");