version 1.64, 2009/11/02 12:48:44 |
version 1.65, 2009/11/03 20:29:47 |
|
|
continue; |
continue; |
|
|
if (s->flags & SESSION_UNATTACHED) { |
if (s->flags & SESSION_UNATTACHED) { |
s->activity = time(NULL); |
if (gettimeofday(&s->activity_time, NULL) != 0) |
|
fatal("gettimeofday failed"); |
continue; |
continue; |
} |
} |
|
|
timeout = options_get_number(&s->options, "lock-after-time"); |
timeout = options_get_number(&s->options, "lock-after-time"); |
if (timeout <= 0 || t <= s->activity + timeout) |
if (timeout <= 0 || t <= s->activity_time.tv_sec + timeout) |
return; /* not timed out */ |
return; /* not timed out */ |
} |
} |
|
|
|
|
continue; |
continue; |
|
|
if (s->flags & SESSION_UNATTACHED) { |
if (s->flags & SESSION_UNATTACHED) { |
s->activity = time(NULL); |
if (gettimeofday(&s->activity_time, NULL) != 0) |
|
fatal("gettimeofday failed"); |
continue; |
continue; |
} |
} |
|
|
timeout = options_get_number(&s->options, "lock-after-time"); |
timeout = options_get_number(&s->options, "lock-after-time"); |
if (timeout > 0 && t > s->activity + timeout) { |
if (timeout > 0 && t > s->activity_time.tv_sec + timeout) { |
server_lock_session(s); |
server_lock_session(s); |
recalculate_sizes(); |
recalculate_sizes(); |
} |
} |