This is an automated email from the git hooks/post-receive script.

git pushed a commit to branch master
in repository efl.

View the commit online.

commit 671c513ac59e11e0d644a1084b9fe363941e6f04
Author: Alastair Poole <[email protected]>
AuthorDate: Wed Dec 2 01:57:33 2026 +0000

    ecore_wl2: allow disconnect during display recovery
    
    A client can release its last display reference while recovery is
    waiting to reconnect. Guard the Wayland calls and cancel the retry
    timer before freeing the display.
    
    Co-Authored-By: Codex (GPT-6) <[email protected]>
---
 src/lib/ecore_wl2/ecore_wl2_display.c | 16 ++++++++++------
 1 file changed, 10 insertions(+), 6 deletions(-)

diff --git a/src/lib/ecore_wl2/ecore_wl2_display.c b/src/lib/ecore_wl2/ecore_wl2_display.c
index 9252c7bb48..992a3db745 100644
--- a/src/lib/ecore_wl2/ecore_wl2_display.c
+++ b/src/lib/ecore_wl2/ecore_wl2_display.c
@@ -1025,19 +1025,23 @@ EAPI void
 ecore_wl2_display_disconnect(Ecore_Wl2_Display *display)
 {
    EINA_SAFETY_ON_NULL_RETURN(display);
-   int ret;
-
-   do
+   if (display->wl.display)
      {
-        ret = wl_display_dispatch_pending(display->wl.display);
-     } while (ret > 0);
+        int ret;
+
+        do
+          {
+             ret = wl_display_dispatch_pending(display->wl.display);
+          } while (ret > 0);
+     }
 
    --display->refs;
    if (display->refs == 0)
      {
+        if (display->recovery_timer) ecore_timer_del(display->recovery_timer);
         _ecore_wl2_display_cleanup(display);
 
-        wl_display_disconnect(display->wl.display);
+        if (display->wl.display) wl_display_disconnect(display->wl.display);
 
         /* remove this client display from hash */
         eina_hash_del_by_key(_client_displays, display->name);

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.

Reply via email to