mirror of
https://github.com/atom/atom.git
synced 2026-04-06 03:02:13 -04:00
Only call terminate when worker isn't null
This commit is contained in:
@@ -42,5 +42,5 @@ class Task
|
||||
terminate: ->
|
||||
unless @terminated
|
||||
@terminated = true
|
||||
@worker.terminate()
|
||||
@worker?.terminate()
|
||||
@worker = null
|
||||
|
||||
Reference in New Issue
Block a user