summaryrefslogtreecommitdiff
path: root/src/storage
diff options
context:
space:
mode:
authorMax Kellermann <max@musicpd.org>2016-12-27 23:06:34 +0100
committerMax Kellermann <max@musicpd.org>2016-12-28 01:15:08 +0100
commitb042095ac239be78a704293f217328b7f1b4cc16 (patch)
treefcf5cc24aa212066562cef91dc24df2c89fd402f /src/storage
parent3413d1bf23a7ba4f33d015d1ec5024c191fe08e5 (diff)
event/Loop: use std::chrono
Diffstat (limited to 'src/storage')
-rw-r--r--src/storage/plugins/NfsStorage.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/storage/plugins/NfsStorage.cxx b/src/storage/plugins/NfsStorage.cxx
index ba2e54556..f4f16edbc 100644
--- a/src/storage/plugins/NfsStorage.cxx
+++ b/src/storage/plugins/NfsStorage.cxx
@@ -102,14 +102,14 @@ public:
assert(state == State::CONNECTING);
SetState(State::DELAY, std::move(e));
- TimeoutMonitor::ScheduleSeconds(60);
+ TimeoutMonitor::Schedule(std::chrono::minutes(1));
}
void OnNfsConnectionDisconnected(std::exception_ptr e) final {
assert(state == State::READY);
SetState(State::DELAY, std::move(e));
- TimeoutMonitor::ScheduleSeconds(5);
+ TimeoutMonitor::Schedule(std::chrono::seconds(5));
}
/* virtual methods from DeferredMonitor */