Attempt fix receiving PING
This commit is contained in:
+1
-1
@@ -205,7 +205,7 @@ void parse_file(const char *file) {
|
|||||||
int_f(vars, "back_button_timeout", to);
|
int_f(vars, "back_button_timeout", to);
|
||||||
|
|
||||||
if(to > std::numeric_limits<int>::min()) {
|
if(to > std::numeric_limits<int>::min()) {
|
||||||
input.back_button_timeout = std::chrono::milliseconds {to };
|
input.back_button_timeout = std::chrono::milliseconds { to };
|
||||||
}
|
}
|
||||||
|
|
||||||
std::string log_level_string;
|
std::string log_level_string;
|
||||||
|
|||||||
+1
-3
@@ -753,9 +753,7 @@ void end_broadcast(broadcast_ctx_t &ctx) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
int recv_ping(decltype(broadcast)::ptr_t ref, socket_e type, asio::ip::address &addr, std::chrono::milliseconds timeout) {
|
int recv_ping(decltype(broadcast)::ptr_t ref, socket_e type, asio::ip::address &addr, std::chrono::milliseconds timeout) {
|
||||||
constexpr char ping[] = {
|
auto constexpr ping = "PING"sv;
|
||||||
0x50, 0x49, 0x4E, 0x47
|
|
||||||
};
|
|
||||||
|
|
||||||
auto messages = std::make_shared<message_queue_t::element_type>();
|
auto messages = std::make_shared<message_queue_t::element_type>();
|
||||||
ref->message_queue_queue->raise(type, addr, messages);
|
ref->message_queue_queue->raise(type, addr, messages);
|
||||||
|
|||||||
Reference in New Issue
Block a user