Fix libevent init.

This commit is contained in:
Jan Vidar Krey 2009-08-04 00:22:08 +02:00
parent 80dee0c020
commit b9adaa4f8b

View File

@ -47,11 +47,7 @@ int net_initialize()
} }
#endif /* WINSOCK */ #endif /* WINSOCK */
#ifdef LIBEVENT_1_4
net_evbase = event_base_new();
#else
net_evbase = event_init(); net_evbase = event_init();
#endif
if (!net_evbase) if (!net_evbase)
{ {
LOG_ERROR("Unable to initialize libevent."); LOG_ERROR("Unable to initialize libevent.");