use the nice error overlay, closes #28
This commit is contained in:
parent
cbd87abc3d
commit
ba9a9096bf
@ -1148,6 +1148,9 @@ function on_ws_recv(evt) {
|
|||||||
break;
|
break;
|
||||||
case 'backoff':
|
case 'backoff':
|
||||||
divlog("Server is currently busy: " + json['reason'], true);
|
divlog("Server is currently busy: " + json['reason'], true);
|
||||||
|
var $overlay = $('#openwebrx-error-overlay');
|
||||||
|
$overlay.find('.errormessage').text(json['reason']);
|
||||||
|
$overlay.show();
|
||||||
// set a higher reconnection timeout right away to avoid additional load
|
// set a higher reconnection timeout right away to avoid additional load
|
||||||
reconnect_timeout = 16000;
|
reconnect_timeout = 16000;
|
||||||
break;
|
break;
|
||||||
|
@ -89,7 +89,7 @@ class OpenWebRxReceiverClient(Client):
|
|||||||
try:
|
try:
|
||||||
ClientRegistry.getSharedInstance().addClient(self)
|
ClientRegistry.getSharedInstance().addClient(self)
|
||||||
except TooManyClientsException:
|
except TooManyClientsException:
|
||||||
self.write_backoff_message("too many clients")
|
self.write_backoff_message("Too many clients")
|
||||||
self.close()
|
self.close()
|
||||||
raise
|
raise
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user