mirror of
https://git.mirrors.martin98.com/https://github.com/bambulab/BambuStudio.git
synced 2025-09-23 05:43:16 +08:00
FIX: start ping test on leave tunnel mqtt
Change-Id: I3e7f79edb57f258637addd8ff097617afdc3d2de Jira: none
This commit is contained in:
parent
a193169a76
commit
ca96b61781
@ -1888,6 +1888,12 @@ void GUI_App::init_networking_callbacks()
|
|||||||
/* request_pushing */
|
/* request_pushing */
|
||||||
MachineObject* obj = m_device_manager->get_my_machine(tunnel ? dev_id.substr(7) : dev_id);
|
MachineObject* obj = m_device_manager->get_my_machine(tunnel ? dev_id.substr(7) : dev_id);
|
||||||
if (obj) {
|
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->is_tunnel_mqtt = tunnel;
|
||||||
obj->command_request_push_all(true);
|
obj->command_request_push_all(true);
|
||||||
obj->command_get_version();
|
obj->command_get_version();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user