mirror of
https://github.com/atom/atom.git
synced 2026-02-14 16:45:14 -05:00
Ignore redundant destructions of EditSessions
This commit is contained in:
committed by
probablycorey
parent
62729c42ee
commit
c6729e9df1
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user