diff --git a/lib/vfs/gc.c b/lib/vfs/gc.c
index 5090aaacb..411ffe56f 100644
a
|
b
|
vfs_expire (gboolean now) |
249 | 249 | locked = TRUE; |
250 | 250 | |
251 | 251 | curr_time = mc_timer_elapsed (mc_global.timer); |
252 | | exp_time = curr_time - vfs_timeout * G_USEC_PER_SEC; |
| 252 | exp_time = curr_time; |
253 | 253 | |
254 | 254 | if (now) |
255 | 255 | { |
… |
… |
vfs_expire (gboolean now) |
269 | 269 | stamping->v->free (stamping->id); |
270 | 270 | MC_PTR_FREE (stamp->data); |
271 | 271 | } |
272 | | else if (stamping->time <= exp_time) |
| 272 | else if (stamping->time + vfs_timeout * G_USEC_PER_SEC <= exp_time) |
273 | 273 | { |
274 | 274 | /* update timestamp of VFS that is in use, or free unused VFS */ |
275 | 275 | if (stamping->v->nothingisopen != NULL && !stamping->v->nothingisopen (stamping->id)) |