* net.cc (wsock_event): Add destructor.

This commit is contained in:
Corinna Vinschen
2001-06-03 22:18:19 +00:00
parent aa7a61121e
commit 9f13167f77
2 changed files with 10 additions and 0 deletions

View File

@ -52,6 +52,12 @@ class wsock_event
WSAOVERLAPPED ovr;
public:
wsock_event () : event (NULL) {};
~wsock_event ()
{
if (event)
WSACloseEvent (event);
event = NULL;
};
LPWSAOVERLAPPED prepare ();
int wait (int socket, LPDWORD flags);