You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by pu...@apache.org on 2012/08/15 01:50:13 UTC

[5/5] wp7 commit: CB-805 getCurrentHeading returns success only once

CB-805 getCurrentHeading returns success only once


Project: http://git-wip-us.apache.org/repos/asf/incubator-cordova-wp7/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-cordova-wp7/commit/5373b5ba
Tree: http://git-wip-us.apache.org/repos/asf/incubator-cordova-wp7/tree/5373b5ba
Diff: http://git-wip-us.apache.org/repos/asf/incubator-cordova-wp7/diff/5373b5ba

Branch: refs/heads/master
Commit: 5373b5ba334c7ad0aced8bc12637d0cb12ef480a
Parents: d04b87a
Author: hermwong <he...@gmail.com>
Authored: Tue Jul 24 14:13:57 2012 -0700
Committer: hermwong <he...@gmail.com>
Committed: Tue Jul 24 14:14:09 2012 -0700

----------------------------------------------------------------------
 .../standalone/cordovalib/Commands/Compass.cs      |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-cordova-wp7/blob/5373b5ba/templates/standalone/cordovalib/Commands/Compass.cs
----------------------------------------------------------------------
diff --git a/templates/standalone/cordovalib/Commands/Compass.cs b/templates/standalone/cordovalib/Commands/Compass.cs
index 7129438..9f8d402 100644
--- a/templates/standalone/cordovalib/Commands/Compass.cs
+++ b/templates/standalone/cordovalib/Commands/Compass.cs
@@ -165,7 +165,6 @@ namespace WP7CordovaClassLib.Cordova.Commands
             {
                 if (currentStatus != Running)
                 {
-
                     lock (compass)
                     {
                         compass.CurrentValueChanged += compass_SingleHeadingValueChanged;
@@ -188,11 +187,11 @@ namespace WP7CordovaClassLib.Cordova.Commands
                 }
                 lock (compass)
                 {
-
                     compass.CurrentValueChanged -= compass_SingleHeadingValueChanged;
                     if (watchers.Count < 1)
                     {
                         compass.Stop();
+                        this.SetStatus(Stopped);
                     }
                 }
             }