Check before destroy, if task is already stored.

This commit is contained in:
Martin Edenhofer 2014-10-07 20:12:57 +02:00
parent 94a9b5e004
commit f326fb12f6

View file

@ -356,6 +356,9 @@ class _taskManagerSingleton extends App.Controller
# destory task in backend
delete @tasksToUpdate[ task.key ]
# if task isnt already stored on backend
return if !task.id
App.Taskbar.destroy(task.id)
return