fix: fix build error on Linux

This commit is contained in:
MistEO
2022-07-26 21:11:08 +08:00
parent 5b3edb2b20
commit 3ff908f0d4

View File

@@ -491,11 +491,13 @@ void asst::Controller::clear_info() noexcept
m_height = 0;
m_control_scale = 1.0;
m_scale_size = { WindowWidthDefault, WindowHeightDefault };
#ifdef _WIN32
if (m_server_sock) {
::closesocket(m_server_sock);
m_server_sock = 0U;
}
m_server_started = false;
#endif
--m_instance_count;
}