Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Prevent endGroups being emitted if there is no group set

  • Loading branch information...
commit 68e6aa97982bba912a29a30ec655a5beb9f15940 1 parent b9f5737
@bergie bergie authored
Showing with 1 addition and 0 deletions.
  1. +1 −0  src/lib/InternalSocket.coffee
View
1  src/lib/InternalSocket.coffee
@@ -105,6 +105,7 @@ class InternalSocket extends EventEmitter
@emit 'begingroup', group
endGroup: ->
+ return unless @groups.length
@emit 'endgroup', @groups.pop()
# ## Socket identifiers
Please sign in to comment.
Something went wrong with that request. Please try again.