incubator-callback-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From hermw...@apache.org
Subject wp7 commit: CB-805 getCurrentHeading returns success only once
Date Tue, 24 Jul 2012 21:44:45 GMT
Updated Branches:
  refs/heads/CB-805 [created] 5373b5ba3


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/CB-805
Commit: 5373b5ba334c7ad0aced8bc12637d0cb12ef480a
Parents: d04b87a
Author: hermwong <herm.wong@gmail.com>
Authored: Tue Jul 24 14:13:57 2012 -0700
Committer: hermwong <herm.wong@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);
                     }
                 }
             }


Mime
View raw message