mirror of
https://github.com/openai/codex.git
synced 2026-11-26 23:40:43 +00:00
Fix remote hook CI regressions
This commit is contained in:
@@ -102,7 +102,9 @@ impl Default for LocalProcess {
|
||||
fn default() -> Self {
|
||||
let (outgoing_tx, mut outgoing_rx) =
|
||||
mpsc::channel::<RpcServerOutboundMessage>(NOTIFICATION_CHANNEL_CAPACITY);
|
||||
tokio::spawn(async move { while outgoing_rx.recv().await.is_some() {} });
|
||||
if let Ok(handle) = tokio::runtime::Handle::try_current() {
|
||||
handle.spawn(async move { while outgoing_rx.recv().await.is_some() {} });
|
||||
}
|
||||
Self::new(RpcNotificationSender::new(outgoing_tx))
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user