Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Rolled back a commit that broke things if cleanup was used. It create…

…d the action_queue in a dispatch_once block, and never recreated it after a cleanup
  • Loading branch information...
commit b81e70d6b64ee39fe2e33dad3bd7f7da7d41247e 1 parent a41ceee
@blackgold9 blackgold9 authored
View
6 MagicalRecord/Core/MagicalRecord+Actions.m
@@ -13,10 +13,10 @@
dispatch_queue_t action_queue(void);
dispatch_queue_t action_queue(void)
{
- static dispatch_once_t onceToken;
- dispatch_once(&onceToken, ^{
+ if (background_action_queue == NULL)
+ {
background_action_queue = dispatch_queue_create("com.magicalpanda.magicalrecord.actionQueue", DISPATCH_QUEUE_SERIAL);
- });
+ }
return background_action_queue;
}
View
7 Project Files/Magical Record.xcodeproj/xcshareddata/xcschemes/iOS App Unit Tests.xcscheme
@@ -46,7 +46,7 @@
</TestAction>
<LaunchAction
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
- selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.GDB"
+ selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
launchStyle = "0"
useCustomWorkingDirectory = "NO"
buildConfiguration = "Debug"
@@ -63,6 +63,11 @@
</BuildableReference>
</BuildableProductRunnable>
<AdditionalOptions>
+ <AdditionalOption
+ key = "NSZombieEnabled"
+ value = "YES"
+ isEnabled = "YES">
+ </AdditionalOption>
</AdditionalOptions>
</LaunchAction>
<ProfileAction
Please sign in to comment.
Something went wrong with that request. Please try again.