From 2ccfdcb084f5896a6f8909c490cbcf7c93a79108 Mon Sep 17 00:00:00 2001 From: Klaas Freitag Date: Wed, 6 Aug 2014 09:52:44 +0200 Subject: [PATCH] NautilusOverlays: return False if sock connection breaks --- shell_integration/nautilus/ownCloud.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/shell_integration/nautilus/ownCloud.py b/shell_integration/nautilus/ownCloud.py index 585a7b28a..ac1ad54c8 100755 --- a/shell_integration/nautilus/ownCloud.py +++ b/shell_integration/nautilus/ownCloud.py @@ -98,6 +98,8 @@ class ownCloudExtension(GObject.GObject, Nautilus.ColumnProvider, Nautilus.InfoP for l in data.split('\n'): self.handle_server_response( l ) + else: + return False return True # run again @@ -122,4 +124,4 @@ class ownCloudExtension(GObject.GObject, Nautilus.ColumnProvider, Nautilus.InfoP self.askForOverlay(filename) break else: - print "Not in scope:"+filename \ No newline at end of file + print "Not in scope:"+filename