aboutsummaryrefslogtreecommitdiffstats
path: root/Source/SPDatabaseDocument.m
diff options
context:
space:
mode:
authorMax <post@wickenrode.com>2015-07-20 01:18:11 +0200
committerMax <post@wickenrode.com>2015-07-20 01:18:11 +0200
commitfeff69bdf2cb1148dc2930a9de7976c80c939632 (patch)
tree6b5b3667d9c6b1f6931274bfd3cc6b056da292c9 /Source/SPDatabaseDocument.m
parentc1580fb4e585a16348b59641ba0e1ebe19b99062 (diff)
downloadsequelpro-feff69bdf2cb1148dc2930a9de7976c80c939632.tar.gz
sequelpro-feff69bdf2cb1148dc2930a9de7976c80c939632.tar.bz2
sequelpro-feff69bdf2cb1148dc2930a9de7976c80c939632.zip
Remove an unbalanced call to -[SPDatabaseDocument endTask] which caused misbehaviour if loading a table failed (fixes #2180)
Note: I suspect this was a leftover from refactoring but I can't rule out the possibility of a code path where this was desired.
Diffstat (limited to 'Source/SPDatabaseDocument.m')
-rw-r--r--Source/SPDatabaseDocument.m1
1 files changed, 1 insertions, 0 deletions
diff --git a/Source/SPDatabaseDocument.m b/Source/SPDatabaseDocument.m
index faabb2a8..eb99fe2c 100644
--- a/Source/SPDatabaseDocument.m
+++ b/Source/SPDatabaseDocument.m
@@ -1429,6 +1429,7 @@ static int64_t SPDatabaseDocumentInstanceCounter = 0;
// Decrement the working level
_isWorkingLevel--;
+ assert(_isWorkingLevel >= 0);
// Ensure cancellation interface is reset
[self disableTaskCancellation];