mirror of
https://github.com/izzy2lost/WeeU.git
synced 2026-07-06 00:19:59 -07:00
DSU: fix build error when enable DEBUG_DSU_CLIENT (#408)
This commit is contained in:
@@ -263,7 +263,7 @@ void DSUControllerProvider::reader_thread()
|
||||
if (ec)
|
||||
{
|
||||
#ifdef DEBUG_DSU_CLIENT
|
||||
printf(" DSUControllerProvider::ReaderThread: exception %s\n", ex.what());
|
||||
printf(" DSUControllerProvider::ReaderThread: exception %s\n", ec.what());
|
||||
#endif
|
||||
|
||||
// there's probably no server listening on the given address:port
|
||||
@@ -406,10 +406,10 @@ void DSUControllerProvider::writer_thread()
|
||||
{
|
||||
m_socket.send_to(boost::asio::buffer(msg.get(), msg->GetSize()), m_receiver_endpoint);
|
||||
}
|
||||
catch (const std::exception&)
|
||||
catch (const std::exception& ec)
|
||||
{
|
||||
#ifdef DEBUG_DSU_CLIENT
|
||||
printf(" DSUControllerProvider::WriterThread: exception %s\n", ex.what());
|
||||
printf(" DSUControllerProvider::WriterThread: exception %s\n", ec.what());
|
||||
#endif
|
||||
std::this_thread::sleep_for(std::chrono::milliseconds(250));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user