diff options
author | peterbell10 <peterbell10@live.co.uk> | 2020-06-08 22:03:29 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-06-08 22:03:29 +0200 |
commit | 6036971c7780552f0112151f35c8d49a02eaa1f8 (patch) | |
tree | 6ef6a0c25c0a87d757d646d9950d74e96c92770b | |
parent | Fire sim: Handle fuel block being destroyed (#4751) (diff) | |
download | cuberite-6036971c7780552f0112151f35c8d49a02eaa1f8.tar cuberite-6036971c7780552f0112151f35c8d49a02eaa1f8.tar.gz cuberite-6036971c7780552f0112151f35c8d49a02eaa1f8.tar.bz2 cuberite-6036971c7780552f0112151f35c8d49a02eaa1f8.tar.lz cuberite-6036971c7780552f0112151f35c8d49a02eaa1f8.tar.xz cuberite-6036971c7780552f0112151f35c8d49a02eaa1f8.tar.zst cuberite-6036971c7780552f0112151f35c8d49a02eaa1f8.zip |
-rw-r--r-- | src/OSSupport/NetworkSingleton.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/OSSupport/NetworkSingleton.cpp b/src/OSSupport/NetworkSingleton.cpp index 95de0e7b5..e022f4fec 100644 --- a/src/OSSupport/NetworkSingleton.cpp +++ b/src/OSSupport/NetworkSingleton.cpp @@ -75,12 +75,15 @@ void cNetworkSingleton::Initialise(void) #endif // Create the main event_base: - m_EventBase = event_base_new(); + event_config * config = event_config_new(); + event_config_set_flag(config, EVENT_BASE_FLAG_STARTUP_IOCP); + m_EventBase = event_base_new_with_config(config); if (m_EventBase == nullptr) { LOGERROR("Failed to initialize LibEvent. The server will now terminate."); abort(); } + event_config_free(config); // Create the event loop thread: m_HasTerminated = false; |