diff --git a/lib/landline/extensions/websocket.rb b/lib/landline/extensions/websocket.rb index 4d035bf..1082328 100644 --- a/lib/landline/extensions/websocket.rb +++ b/lib/landline/extensions/websocket.rb @@ -91,6 +91,7 @@ module Landline ) @io.write(frame.to_s) rescue Errno::EPIPE => e + @writable = false _emit :error, e close nil