Fix project not closing

Fix #303
This commit is contained in:
Julien Duponchelle
2015-09-03 16:46:34 +02:00
parent b1ef49672e
commit 986ab649d7
2 changed files with 4 additions and 3 deletions

View File

@ -153,7 +153,7 @@ class ProjectHandler:
pm = ProjectManager.instance()
project = pm.get_project(request.match_info["project_id"])
if ProjectHandler._notifications_listening == 0:
if ProjectHandler._notifications_listening <= 1:
yield from project.close()
pm.remove_project(project.id)
else: