Linux + iPhone Continuity / iMessage / SMS
fix: when compositor dies we peg a core
Zack Bartel101b554258ad
diff --git a/src/core/src/wayland.cpp b/src/core/src/wayland.cppindex bd50a3d..4339cca 100644--- a/src/core/src/wayland.cpp+++ b/src/core/src/wayland.cpp@@ -88,8 +88,13 @@ namespace tether {int fd = wl_display_get_fd(raw_display_);loop_.addFd(fd, [this](int) {if (wl_display_dispatch(raw_display_) < 0) {- debug::log(ERR, "WaylandContext: Display disconnected.");+ // Display connection is dead (compositor stopped).+ // We choose to exit here rather than attempt to reconnect.+ debug::log(ERR, "WaylandContext: Display connection lost; shutting down for on-demand restart.");+ loop_.stop();+ return;}+ wl_display_flush(raw_display_); // flush requests queued during dispatch (offer/source destroys)});// Flush any pending requests