mirror of
https://github.com/cyberarm/w3d_hub_linux_launcher.git
synced 2026-11-03 16:44:05 +00:00
Move WebSocketClient error handler up a level to catch initial connection errors
This commit is contained in:
@@ -34,6 +34,8 @@ module W3DHubLauncher
|
||||
while message = connection.read
|
||||
@events[:message].call(message)
|
||||
end
|
||||
end
|
||||
|
||||
# FIXME: Don't rescue for all ta errors?
|
||||
rescue => error
|
||||
@errored = true
|
||||
@@ -43,7 +45,6 @@ module W3DHubLauncher
|
||||
@connection = nil
|
||||
@errored = false
|
||||
end
|
||||
end
|
||||
|
||||
self
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user