Skip to content

Commit

Permalink
[FIX] blocking ...andWait
Browse files Browse the repository at this point in the history
  • Loading branch information
Christoph Krey committed May 11, 2016
1 parent ed4add4 commit e156744
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions MQTTClient.podspec
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
Pod::Spec.new do |mqttc|
mqttc.name = "MQTTClient"
mqttc.version = "0.7.5"
mqttc.version = "0.7.6"
mqttc.summary = "iOS, OSX and tvOS native ObjectiveC MQTT Client Framework"
mqttc.homepage = "https://github.com/ckrey/MQTT-Client-Framework"
mqttc.license = { :type => "EPLv1", :file => "LICENSE" }
mqttc.author = { "Christoph Krey" => "krey.christoph@gmail.com" }
mqttc.source = {
:git => "https://github.com/ckrey/MQTT-Client-Framework.git",
:tag => "0.7.5",
:tag => "0.7.6",
:submodules => true
}

Expand Down
4 changes: 2 additions & 2 deletions MQTTClient/MQTTClient/MQTTCoreDataPersistence.m
Original file line number Diff line number Diff line change
Expand Up @@ -241,14 +241,14 @@ - (void)sync {
if ([NSThread isMainThread]) {
[self internalSync];
} else {
[self.managedObjectContext performBlockAndWait:^{
[self.managedObjectContext performBlock:^{
[self internalSync];
}];
}
if ([NSThread isMainThread]) {
[self internalParentSync];
} else {
[self.managedObjectContext.parentContext performBlockAndWait:^{
[self.managedObjectContext.parentContext performBlock:^{
[self internalParentSync];
}];
}
Expand Down

0 comments on commit e156744

Please sign in to comment.