Skip to content

Commit

Permalink
Merge pull request #182 from shankari/revert_broken_fix
Browse files Browse the repository at this point in the history
Revert "Add a check to see if we are initializing the state machine r…
  • Loading branch information
shankari authored Apr 4, 2020
2 parents 345649e + 465f53c commit fc8e8df
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 8 deletions.
2 changes: 1 addition & 1 deletion plugin.xml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<plugin xmlns="http://www.phonegap.com/ns/plugins/1.0"
id="edu.berkeley.eecs.emission.cordova.datacollection"
version="1.4.2">
version="1.4.1">

<name>DataCollection</name>
<description>Background data collection FTW! This is the part that I really
Expand Down
7 changes: 0 additions & 7 deletions src/ios/Location/TripDiaryStateMachine.m
Original file line number Diff line number Diff line change
Expand Up @@ -51,13 +51,6 @@ + (NSString*)getStateName:(TripDiaryStates)state {
+ (TripDiaryStateMachine*) instance {
static dispatch_once_t once;
static id sharedInstance;

if (once != 0) {
[LocalNotificationManager
addNotification:[NSString stringWithFormat:@"once = %lu, found recursive call to instance creation, returning NULL on second call", once]];
return NULL;
}

dispatch_once(&once, ^{
sharedInstance = [[self alloc] init];
// when we create a new instance, we use it to register for notifications
Expand Down

0 comments on commit fc8e8df

Please sign in to comment.