Minor logic fix

This commit is contained in:
kirillcpp 2012-12-07 13:38:09 +03:00 committed by Alex Zolotarev
parent 1485c29aaa
commit 0da59ba7ba

View file

@ -41,7 +41,7 @@ void Animator::RotateScreen(double startAngle, double endAngle)
{
if (m_rotateScreenTask)
{
if (!m_rotateScreenTask->IsCancelled())
if (!m_rotateScreenTask->IsCancelled() && !m_rotateScreenTask->IsEnded())
m_rotateScreenTask->Cancel();
m_rotateScreenTask->Unlock();
m_rotateScreenTask.reset();