[#110] Add AI client with multi-provider support and UI #113
@@ -90,7 +90,10 @@ _aiwin_validate(gpointer user_data)
|
|||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!wins_ai_exists((ProfAiWin*)user_data)) {
|
pthread_mutex_lock(&lock);
|
||||||
|
gboolean win_exists = wins_ai_exists((ProfAiWin*)user_data);
|
||||||
|
pthread_mutex_unlock(&lock);
|
||||||
|
if (!win_exists) {
|
||||||
log_warning("[AI-THREAD] aiwin=%p no longer exists — window was closed", (void*)user_data);
|
log_warning("[AI-THREAD] aiwin=%p no longer exists — window was closed", (void*)user_data);
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user