Skip to content

Commit 739e550

Browse files
committed
gh-920: Initialization issue with inaccessible paths
1 parent 604fab5 commit 739e550

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

far/filesystemwatcher.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -221,7 +221,8 @@ FileSystemWatcher::FileSystemWatcher(const string_view EventId, const string_vie
221221

222222
FileSystemWatcher::~FileSystemWatcher()
223223
{
224-
background_watcher::instance().remove(this);
224+
if (m_Overlapped.hEvent)
225+
background_watcher::instance().remove(this);
225226

226227
{
227228
SCOPED_ACTION(std::scoped_lock)(m_CS);

0 commit comments

Comments
 (0)