diff options
author | Fabio Alessandrelli <fabio.alessandrelli@gmail.com> | 2018-09-13 15:47:00 +0200 |
---|---|---|
committer | Fabio Alessandrelli <fabio.alessandrelli@gmail.com> | 2018-09-13 16:05:47 +0200 |
commit | 01c3c1a07bfbaf6df8b1154e5ef31ecc890b03a3 (patch) | |
tree | af355216c986b4db161278f822e9da264f53859c /platform/windows | |
parent | 9b31d2da1c20807928ac2aea41a187184f9ee051 (diff) |
Properly initialize Winsock on startup
Also fix typo in _get_last_error which caused Winsock connect to fail.
Diffstat (limited to 'platform/windows')
-rw-r--r-- | platform/windows/os_windows.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/platform/windows/os_windows.cpp b/platform/windows/os_windows.cpp index 6723210432..67fc1c7496 100644 --- a/platform/windows/os_windows.cpp +++ b/platform/windows/os_windows.cpp @@ -1512,6 +1512,7 @@ void OS_Windows::finalize_core() { timeEndPeriod(1); memdelete(process_map); + NetSocketPosix::cleanup(); } void OS_Windows::alert(const String &p_alert, const String &p_title) { |