fix(ui): stop status bar / chat bleed-through over the external editor #131
@@ -182,7 +182,13 @@ inp_readline(void)
|
|||||||
{
|
{
|
||||||
// UI is suspended
|
// UI is suspended
|
||||||
if (is_suspended || isendwin()) {
|
if (is_suspended || isendwin()) {
|
||||||
|
// Mirror the normal-path unlock/sleep/lock so worker threads
|
||||||
|
// (http_upload / http_download / ai_client) can acquire `lock`
|
||||||
|
// during the editor session — otherwise the main thread holds
|
||||||
|
// it continuously and every in-flight transfer freezes.
|
||||||
|
pthread_mutex_unlock(&lock);
|
||||||
g_usleep(100000); // 100ms
|
g_usleep(100000); // 100ms
|
||||||
|
pthread_mutex_lock(&lock);
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user