additional proxy timeout check

This commit is contained in:
Serene H 2016-07-25 15:28:10 -07:00
parent c1f623948b
commit 0ae71952d2

View file

@ -107,6 +107,7 @@ class ProxyPair
@relay.onmessage = @onRelayToClientMessage
# TODO: Better websocket timeout handling.
@timer = setTimeout((=>
return if 0 == @timer
log @relay.label + ' timed out connecting.'
@relay.onclose()), 5000)