FIX: start ping test on leave tunnel mqtt

Change-Id: I3e7f79edb57f258637addd8ff097617afdc3d2de
Jira: none
This commit is contained in:
chunmao.guo 2023-12-27 19:25:13 +08:00 committed by Lane.Wei
parent a193169a76
commit ca96b61781

View File

@ -1888,6 +1888,12 @@ void GUI_App::init_networking_callbacks()
/* request_pushing */
MachineObject* obj = m_device_manager->get_my_machine(tunnel ? dev_id.substr(7) : dev_id);
if (obj) {
#if !BBL_RELEASE_TO_PUBLIC && defined(__WINDOWS__)
if (obj->is_tunnel_mqtt && !tunnel)
boost::thread ping_thread = Slic3r::create_thread([] {
start_ping_test();
});
#endif
obj->is_tunnel_mqtt = tunnel;
obj->command_request_push_all(true);
obj->command_get_version();