Avoid dbus timeout
authorEnrico Zini <enrico@enricozini.org>
Thu, 3 Dec 2009 12:27:54 +0000 (13:27 +0100)
committerEnrico Zini <enrico@enricozini.org>
Thu, 3 Dec 2009 12:27:54 +0000 (13:27 +0100)
src/gps.vala

index 0cf1b089b51f4bcf52adc539745d8958cb233f3d..0336cb3e3d3a54bfbdd20f2b9abf44a9fbb6b8b0 100644 (file)
@@ -71,6 +71,7 @@ public class GPS: zavai.Service
        {
                if (started) return;
                bool done = false;
+/*             
                try {
                        // First try with FSO
                        usage.RequestResource("GPS");
@@ -89,6 +90,7 @@ public class GPS: zavai.Service
                                zavai.log.error("Running om-device start gps: " + e.message);
                        }
                }
+*/
                if (!done)
                {
                        try {
@@ -111,6 +113,7 @@ public class GPS: zavai.Service
        {
                if (!started) return;
                bool done = false;
+/*
                try {
                        usage.ReleaseResource("GPS");
                        done = true;
@@ -126,6 +129,7 @@ public class GPS: zavai.Service
                                zavai.log.error("Running device stop gps: " + e.message);
                        }
                }
+*/
                if (!done)
                {
                        try {