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() void AssertIsOnSendingQueue()
{ {
#ifdef DEBUG
if (SYSTEM_VERSION_GREATER_THAN_OR_EQUAL_TO(10, 0)) { if (SYSTEM_VERSION_GREATER_THAN_OR_EQUAL_TO(10, 0)) {
dispatch_assert_queue([OWSDispatch sendingQueue]); dispatch_assert_queue([OWSDispatch sendingQueue]);
} // else, skip assert as it's a development convenience. } // else, skip assert as it's a development convenience.
#endif
} }
/** /**

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

Loading…
Cancel
Save