event/SocketMonitor: don't close the socket automatically

Users now have to call Close() explicitly.  This simplifies using the
class, as most users have automatic socket management already, and
Steal() had to be used often.
This commit is contained in:
Max Kellermann
2014-01-06 18:02:57 +01:00
parent 0d20130d07
commit 793962c5b8
12 changed files with 20 additions and 21 deletions

View File

@@ -42,9 +42,6 @@ EventLoop::~EventLoop()
{
assert(idle.empty());
assert(timers.empty());
/* avoid closing the WakeFD twice */
SocketMonitor::Steal();
}
void