summaryrefslogtreecommitdiff
path: root/src/input_handler.cc
diff options
context:
space:
mode:
authorMaxime Coste <frrrwww@gmail.com>2015-10-10 14:18:43 +0100
committerMaxime Coste <frrrwww@gmail.com>2015-10-10 14:18:43 +0100
commit2d7e99da983c282e186bd14ec4b8b52e0ec7c1b9 (patch)
treec17c6bba8c58023737ba43a374f47ba1a14e2862 /src/input_handler.cc
parent8452e9a09f781064c35e22c1ca049eb86487ed02 (diff)
Tweak file change checking timeout handling
Diffstat (limited to 'src/input_handler.cc')
-rw-r--r--src/input_handler.cc5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/input_handler.cc b/src/input_handler.cc
index e1311282..212a1bbb 100644
--- a/src/input_handler.cc
+++ b/src/input_handler.cc
@@ -158,9 +158,8 @@ public:
m_fs_check_timer{TimePoint::max(),
context().flags() & Context::Flags::Transient ?
Timer::Callback() : Timer::Callback([this](Timer& timer) {
- if (not context().has_client())
- return;
- context().client().check_if_buffer_needs_reloading();
+ if (context().has_client())
+ context().client().check_if_buffer_needs_reloading();
timer.set_next_date(Clock::now() + fs_check_timeout);
})},
m_single_command(single_command)