Tweak file change checking timeout handling
This commit is contained in:
parent
8452e9a09f
commit
2d7e99da98
|
@ -158,9 +158,8 @@ public:
|
||||||
m_fs_check_timer{TimePoint::max(),
|
m_fs_check_timer{TimePoint::max(),
|
||||||
context().flags() & Context::Flags::Transient ?
|
context().flags() & Context::Flags::Transient ?
|
||||||
Timer::Callback() : Timer::Callback([this](Timer& timer) {
|
Timer::Callback() : Timer::Callback([this](Timer& timer) {
|
||||||
if (not context().has_client())
|
if (context().has_client())
|
||||||
return;
|
context().client().check_if_buffer_needs_reloading();
|
||||||
context().client().check_if_buffer_needs_reloading();
|
|
||||||
timer.set_next_date(Clock::now() + fs_check_timeout);
|
timer.set_next_date(Clock::now() + fs_check_timeout);
|
||||||
})},
|
})},
|
||||||
m_single_command(single_command)
|
m_single_command(single_command)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user