diff -r a24aa388f02f -r 636e05eb48f6 src/server/daemon/event_linux.c --- a/src/server/daemon/event_linux.c Wed Jan 02 16:03:50 2013 +0100 +++ b/src/server/daemon/event_linux.c Sat Jan 12 14:00:47 2013 +0100 @@ -116,6 +116,11 @@ if(epoll_ctl(ep, EPOLL_CTL_DEL, event->object, NULL)) { perror("epoll_ctl"); } + + // if set, execute event->finish + if(event->finish) { + event->finish(ev, event); + } } } }