watch for currenttime

This commit is contained in:
Dana Jansens 2007-05-05 16:12:36 +00:00
parent 48a4eafb42
commit 3db93a6ab5

View file

@ -43,7 +43,8 @@ static Time grab_time = CurrentTime;
static Time ungrab_time()
{
Time t = event_curtime;
if (!(t == CurrentTime || event_time_after(t, grab_time)))
if (grab_time == CurrentTime ||
!(t == CurrentTime || event_time_after(t, grab_time)))
/* When the time moves backward on the server, then we can't use
the grab time because that will be in the future. So instead we
have to use CurrentTime.