Skip to content
Permalink
Browse files

Fix one erroneous method call

Not sure if that may has been causing issues for some users...
  • Loading branch information...
dmoagx committed Jul 21, 2016
1 parent d132147 commit 25e19bf6eb4a33213de7b4fdfbcae382dd359913
Showing with 1 addition and 1 deletion.
  1. +1 −1 Frameworks/SPMySQLFramework/Source/SPMySQLConnection.m
@@ -767,7 +767,7 @@ - (BOOL)_reconnectAllowingRetries:(BOOL)canRetry
// Process events for a short time, allowing dialogs to be shown but waiting for
// the proxy. Capture how long this interface action took, standardising the
// overall time.
[[NSRunLoop mainRunLoop] runMode:NSModalPanelRunLoopMode beforeDate:[NSDate dateWithTimeIntervalSinceNow:0.25]];
[[NSRunLoop currentRunLoop] runMode:NSModalPanelRunLoopMode beforeDate:[NSDate dateWithTimeIntervalSinceNow:0.25]];
if (_elapsedSecondsSinceAbsoluteTime(loopIterationStart_t) < 0.25) {
usleep((useconds_t)(250000 - (1000000 * _elapsedSecondsSinceAbsoluteTime(loopIterationStart_t))));
}

0 comments on commit 25e19bf

Please sign in to comment.
You can’t perform that action at this time.