mirror of
https://github.com/cemu-project/Cemu.git
synced 2024-11-29 04:24:17 +01:00
DSUController: fix crash when running on offline mode (#434)
This commit is contained in:
parent
c143950dd1
commit
f41f7b63e8
@ -78,7 +78,8 @@ bool DSUControllerProvider::connect()
|
|||||||
using namespace boost::asio;
|
using namespace boost::asio;
|
||||||
|
|
||||||
ip::udp::resolver resolver(m_io_service);
|
ip::udp::resolver resolver(m_io_service);
|
||||||
const ip::udp::resolver::query query(ip::udp::v4(), get_settings().ip, fmt::format("{}", get_settings().port));
|
const ip::udp::resolver::query query(ip::udp::v4(), get_settings().ip, fmt::format("{}", get_settings().port),
|
||||||
|
ip::udp::resolver::query::canonical_name);
|
||||||
m_receiver_endpoint = *resolver.resolve(query);
|
m_receiver_endpoint = *resolver.resolve(query);
|
||||||
|
|
||||||
if (m_socket.is_open())
|
if (m_socket.is_open())
|
||||||
|
Loading…
Reference in New Issue
Block a user