[pitivi/ges] application: Don't use giofile.query_exists to check releases



commit a9699df3eb8cc09cfb10be64524bfb6ba7cfdbb2
Author: Jean-FranÃois Fortin Tam <nekohayo gmail com>
Date:   Tue May 8 10:23:39 2012 -0400

    application: Don't use giofile.query_exists to check releases
    
    query_exists is racy and in some rare cases can prevent startup.
    It is also unnecessary: even without it, the rest of the code
    handles network failures or a corrupt releases.txt fine.

 pitivi/application.py |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)
---
diff --git a/pitivi/application.py b/pitivi/application.py
index 57d6955..f998f2f 100644
--- a/pitivi/application.py
+++ b/pitivi/application.py
@@ -213,8 +213,7 @@ class Pitivi(Loggable, Signallable):
     def _checkVersion(self):
         giofile = gio.File(uri=RELEASES_URL)
         self.info("Requesting version information")
-        if giofile.query_exists(None):
-            giofile.load_contents_async(self._versionInfoReceivedCb, None, None)
+        giofile.load_contents_async(self._versionInfoReceivedCb, None, None)
 
     def _versionInfoReceivedCb(self, giofile, result, data):
         try:



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]