diff options
Diffstat (limited to 'src/core')
-rw-r--r-- | src/core/automount.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/core/automount.c b/src/core/automount.c index 342dd8f0a9..b8a8a92b54 100644 --- a/src/core/automount.c +++ b/src/core/automount.c @@ -672,6 +672,9 @@ static int automount_start_expire(Automount *a) { assert(a); + if (a->timeout_idle_usec == 0) + return 0; + timeout = now(CLOCK_MONOTONIC) + MAX(a->timeout_idle_usec/3, USEC_PER_SEC); if (a->expire_event_source) { |