Commits (2)
......@@ -579,7 +579,7 @@ static void hook_wait(int duration)
return;
}
if (duration && gKey::isValid())
if (duration != -1 && gKey::isValid())
{
if (!_warning)
{
......
......@@ -592,7 +592,7 @@ static void hook_wait(int duration)
return;
}
if (duration && gKey::isValid())
if (duration != -1 && gKey::isValid())
{
if (!_warning)
{
......
......@@ -1044,7 +1044,7 @@ static void hook_wait(int duration)
return;
}
if (CKEY_is_valid())
if (CKEY_is_valid() && duration != -1)
{
if (!_warning)
{
......
......@@ -808,7 +808,7 @@ static void hook_wait(int duration)
return;
}
if (CKEY_is_valid())
if (CKEY_is_valid() && duration != -1)
{
if (!_warning)
{
......