B #5465: Fix history record check while getting VNC port

(cherry picked from commit 04b557188f)
This commit is contained in:
Ruben S. Montero committed 2017-10-19 11:05:22 +02:00
1 parent ff731e8e5d
commit db6d72a759
1 file changed
+1 -2
+1 -2
View File
@@ -682,8 +682,7 @@ int set_vnc_port(VirtualMachine *vm, int cluster_id, RequestAttributes& att)
{
return 0;
}
else if (vm->hasPreviousHistory() &&
vm->get_previous_action() == History::STOP_ACTION)
else if (vm->hasHistory() && vm->get_action()==History::STOP_ACTION)
{
return 0;
}