Ignore redundant destructions of EditSessions

This commit is contained in:
Nathan Sobo
2013-02-18 16:22:44 -07:00
committed by probablycorey
parent 62729c42ee
commit c6729e9df1

View File

@@ -56,7 +56,7 @@ class EditSession
require 'editor'
destroy: ->
throw new Error("Edit session already destroyed") if @destroyed
return if @destroyed
@destroyed = true
@unsubscribe()
@buffer.release()