tmux: fix the crash when start the control mode by "tmux -CC"

refs: #336
This commit is contained in:
Joe Xue authored and Wez Furlong committed 2025-03-07 09:00:48 -08:00
1 parent 7212327453
commit 718d91a62f
1 file changed
+1 -1
+1 -1
View File
@@ -82,7 +82,7 @@ impl TmuxDomainState {
let domain_id = self.domain_id;
*self.state.lock() = State::Idle;
let resp = response.clone();
promise::spawn::spawn(async move {
promise::spawn::spawn_into_main_thread(async move {
if let Err(err) = cmd.process_result(domain_id, &resp) {
log::error!("Tmux processing command result error: {}", err);
}