mirror of
https://github.com/genodelabs/genode.git
synced 2025-04-09 04:15:52 +00:00
parent
7f5186d489
commit
c2cf0ae8c6
@ -613,7 +613,11 @@ class Genode::Watcher
|
||||
_watch(fs, alloc, rel_path, handler);
|
||||
}
|
||||
|
||||
~Watcher() { _handle->fs().close(_handle); }
|
||||
~Watcher()
|
||||
{
|
||||
if (_handle)
|
||||
_handle->fs().close(_handle);
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user