Fixup poll driver.

This commit is contained in:
Sönke Ludwig 2017-11-22 17:52:46 +01:00
parent c8fd340240
commit 1d4fbc4fa2

View file

@ -376,7 +376,7 @@ final class PollEventDriverWatchers(Events : EventDriverEvents) : EventDriverWat
private void addChange(FileChangeKind kind, Key key, bool is_dir) private void addChange(FileChangeKind kind, Key key, bool is_dir)
{ {
try synchronized (m_changesMutex) { try synchronized (m_changesMutex) {
m_changes ~= FileChange(kind, m_basePath, key.parent ? key.parent.path : ".", key.name, is_dir); m_changes ~= FileChange(kind, m_basePath, key.parent ? key.parent.path : "", key.name, is_dir);
} catch (Exception e) assert(false, "Mutex lock failed: "~e.msg); } catch (Exception e) assert(false, "Mutex lock failed: "~e.msg);
} }