Merge pull request #163 from WhisperSystems/mkirk/debug-asserts

only assert queues in debug
pull/1/head
Michael Kirk 8 years ago committed by GitHub
commit 19d8a32022

@ -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