Skip to content

Commit

Permalink
show more meaningful error message after session timeout
Browse files Browse the repository at this point in the history
  • Loading branch information
pstoellberger committed Aug 12, 2013
1 parent 2e111c4 commit f0cabb1
Showing 1 changed file with 12 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -999,12 +999,20 @@ private void putIQuery(String queryName, IQuery query) {
}

private void removeIQuery(String queryName) {
queries.remove(queryName);
if (queries.containsKey(queryName)) {
IQuery q = queries.remove(queryName);
try {
q.cancel();
} catch (Exception e) {}
q = null;
}
}



private IQuery getIQuery(String queryName) {
return queries.get(queryName);
if (queries.containsKey(queryName)) {
return queries.get(queryName);
}
throw new SaikuServiceException("No query found using name: " + queryName);
}

private Map<String, IQuery> getIQueryMap() {
Expand Down

0 comments on commit f0cabb1

Please sign in to comment.