only assert queues in debug

// FREEBIE
pull/1/head
Michael Kirk 8 years ago
parent 45b8dc9c96
commit 97f93eef7e

@ -44,9 +44,11 @@ NS_ASSUME_NONNULL_BEGIN
void AssertIsOnSendingQueue()
{
#ifdef DEBUG
if (SYSTEM_VERSION_GREATER_THAN_OR_EQUAL_TO(10, 0)) {
dispatch_assert_queue([OWSDispatch sendingQueue]);
} // else, skip assert as it's a development convenience.
#endif
}
/**

@ -8,9 +8,11 @@
void AssertIsOnSessionStoreQueue()
{
#ifdef DEBUG
if (SYSTEM_VERSION_GREATER_THAN_OR_EQUAL_TO(10, 0)) {
dispatch_assert_queue([OWSDispatch sessionStoreQueue]);
} // else, skip assert as it's a development convenience.
#endif
}
@implementation TSStorageManager (SessionStore)

Loading…
Cancel
Save