[gnome-calculator] search-provider: Use lower inactivity timeout



commit da4ea8ce897b08057c5786684a1b4e993d5ee4c3
Author: Marco Trevisan (TreviƱo) <mail 3v1n0 net>
Date:   Fri Aug 24 07:12:12 2018 +0200

    search-provider: Use lower inactivity timeout
    
    Since we're renewing it at every call involving a process call, we can just
    set it to a lower value than the default dbus proxy timeout, so that the provider
    will return invalid values before that the timeout has been hit.

 search-provider/search-provider.vala | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
---
diff --git a/search-provider/search-provider.vala b/search-provider/search-provider.vala
index 7e54fa6f..9035c585 100644
--- a/search-provider/search-provider.vala
+++ b/search-provider/search-provider.vala
@@ -203,7 +203,8 @@ public class SearchProviderApp : Application
     {
         Object (application_id: "org.gnome.Calculator.SearchProvider",
                 flags: ApplicationFlags.IS_SERVICE,
-                inactivity_timeout: 60000);
+                inactivity_timeout: 20000);
+    }
 
     public void renew_inactivity_timeout ()
     {


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