fix: snapmakerprinteragent use moonraker's lifecycle-owned command worker

(cherry picked from commit ce0c759ded)
This commit is contained in:
Ian Chua
2026-10-06 20:05:31 +08:00
parent eb071f30f8
commit 9a161692b5
2 changed files with 6 additions and 3 deletions
+2 -2
View File
@@ -82,10 +82,10 @@ SnapmakerPrinterAgent::SnapmakerPrinterAgent(std::string log_dir) : MoonrakerPri
void SnapmakerPrinterAgent::start_camera_monitor()
{
std::thread([this] {
enqueue_command([this] {
send_ws_rpc("camera.start_monitor",
{{"domain", "lan"}, {"interval", 0}, {"expect_pw", false}});
}).detach();
});
m_camera_last_fire_ms.store(now_ms());
}