diff --git a/fs/vfs/kern_descrip.cc b/fs/vfs/kern_descrip.cc index 1ddade6d8d..cd8dc771ba 100644 --- a/fs/vfs/kern_descrip.cc +++ b/fs/vfs/kern_descrip.cc @@ -246,8 +246,9 @@ void file::epoll_del(epoll_ptr ep) WITH_LOCK(f_lock) { assert(f_epolls); auto i = boost::range::find(*f_epolls, ep); - assert(i != f_epolls->end()); - f_epolls->erase(i); + if (i != f_epolls->end()) { + f_epolls->erase(i); + } } }