mirror of
https://github.com/Kiritow/GSock.git
synced 2024-03-22 13:10:51 +08:00
Fix bug in epoll::del(...)
This commit is contained in:
parent
5071f615f2
commit
3bad71c8c9
|
@ -1723,12 +1723,9 @@ int epoll::mod(vsock& v, int event)
|
|||
ev.data.ptr = &v;
|
||||
return epoll_ctl(_fd, EPOLL_CTL_MOD, v._vp->sfd, &ev);
|
||||
}
|
||||
int epoll::del(vsock& v, int event)
|
||||
int epoll::del(vsock& v)
|
||||
{
|
||||
struct epoll_event ev;
|
||||
ev.events = event;
|
||||
ev.data.ptr = &v;
|
||||
return epoll_ctl(_fd, EPOLL_CTL_DEL, v._vp->sfd, &ev);
|
||||
return epoll_ctl(_fd, EPOLL_CTL_DEL, v._vp->sfd, NULL);
|
||||
}
|
||||
int epoll::wait(int timeout)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue
Block a user