turned assert into debug warnng (needs to be investigated)

This commit is contained in:
Federico Ponchio 2011-10-26 09:27:13 +00:00
parent cedf5fb284
commit 4c6fad3054
2 changed files with 6 additions and 2 deletions

View File

@ -60,8 +60,11 @@ class Cache: public Provider<Token> {
} }
this->heap.clear(); this->heap.clear();
} }
if(!s_curr == 0) {
assert(s_curr == 0); qDebug() << "Cache size after flush is not ZERO!";
s_curr = 0;
}
//assert(s_curr == 0);
{ {
for(unsigned int i = 0; i < tokens.size(); i++) { for(unsigned int i = 0; i < tokens.size(); i++) {

View File

@ -103,6 +103,7 @@ class Controller {
} }
void finish() { void finish() {
flush();
stop(); stop();
} }