Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
refs #10 call Thin::Connection#unbind even if instance of SinatraWebs…
…ocket::Connection
  • Loading branch information
gruis committed Dec 1, 2014
1 parent c64214d commit 88cc207
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions lib/sinatra-websocket/ext/thin/connection.rb
Expand Up @@ -44,11 +44,8 @@ def receive_data_with_websocket(data)
# Skip standard unbind it this is
# WebSocket connection
def unbind_with_websocket
if self.websocket?
self.websocket.unbind
else
unbind_without_websocket
end
self.websocket? && self.websocket.unbind
unbind_without_websocket
end

# Send flash policy file if requested
Expand Down

0 comments on commit 88cc207

Please sign in to comment.