mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
Remove anemic indirection
This commit is contained in:
parent
125a8445f3
commit
1029c49c32
2 changed files with 1 additions and 6 deletions
|
@ -81,11 +81,6 @@ module ActionCable
|
|||
@websocket.send data
|
||||
end
|
||||
|
||||
|
||||
def handle_exception
|
||||
close
|
||||
end
|
||||
|
||||
def close
|
||||
logger.error "Closing connection"
|
||||
@websocket.close
|
||||
|
|
|
@ -37,7 +37,7 @@ module ActionCable
|
|||
logger.error "There was an exception - #{e.class}(#{e.message})"
|
||||
logger.error e.backtrace.join("\n")
|
||||
|
||||
handle_exception
|
||||
close
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue