Core/Refactor: Part 1

This commit is contained in:
hondacrx
2018-05-07 18:56:09 -04:00
parent b2c1554065
commit 216db1c23a
83 changed files with 298 additions and 296 deletions
+2 -5
View File
@@ -54,8 +54,7 @@ namespace Framework.Database
{
QueryCallbackData callback = _callbacks.Dequeue();
bool hasNext = true;
while (hasNext)
while (true)
{
if (_result != null && _result.Wait(0))
{
@@ -65,7 +64,7 @@ namespace Framework.Database
cb(this, f.Result);
hasNext = _result != null;
bool hasNext = _result != null;
if (_callbacks.Count == 0)
{
Contract.Assert(!hasNext);
@@ -81,8 +80,6 @@ namespace Framework.Database
else
return QueryCallbackStatus.NotReady;
}
return QueryCallbackStatus.Completed;
}
Task<SQLResult> _result;