[Xfce4-commits] [xfce/thunar] 01/01: Fix deadlock in mutex causing Thunar to hang (Bug #13481)

noreply at xfce.org noreply at xfce.org
Fri Apr 28 22:59:20 CEST 2017


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

ochosi pushed a commit to branch master
in repository xfce/thunar.

commit 4dd549db77838c9345f10a72f10e705f8ae327d4
Author: Viktor Odintsev <zakhams at gmail.com>
Date:   Thu Apr 13 01:15:53 2017 +0300

    Fix deadlock in mutex causing Thunar to hang (Bug #13481)
    
    file_rename_mutex could remain locked due to the return statement
    in function thunar_file_monitor.
---
 thunar/thunar-file.c | 16 ++++++++--------
 1 file changed, 8 insertions(+), 8 deletions(-)

diff --git a/thunar/thunar-file.c b/thunar/thunar-file.c
index c7aae58..53bebbc 100644
--- a/thunar/thunar-file.c
+++ b/thunar/thunar-file.c
@@ -827,16 +827,16 @@ thunar_file_monitor (GFileMonitor     *monitor,
           else
               other_file = thunar_file_get (other_path, NULL);
 
-          if (other_file == NULL)
-              return;
-
-          /* notify the thumbnail cache that we can now also move the thumbnail */
-          thunar_file_move_thumbnail_cache_file (event_path, other_path);
+          if (other_file != NULL)
+            {
+              /* notify the thumbnail cache that we can now also move the thumbnail */
+              thunar_file_move_thumbnail_cache_file (event_path, other_path);
 
-          /* reload the containing target folder */
-          thunar_file_reload_parent (other_file);
+              /* reload the containing target folder */
+              thunar_file_reload_parent (other_file);
 
-          g_object_unref (other_file);
+              g_object_unref (other_file);
+            }
 
           G_UNLOCK (file_rename_mutex);
         }

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


More information about the Xfce4-commits mailing list