mirror of
https://github.com/fergalmoran/Readarr.git
synced 2025-12-22 17:40:10 +00:00
Misc UI Updates
This commit is contained in:
@@ -90,6 +90,12 @@ class SignalRConnector extends Component {
|
||||
// Control
|
||||
|
||||
retryConnection = () => {
|
||||
if (this.retryInterval >= 30) {
|
||||
this.setState({
|
||||
isDisconnected: true
|
||||
});
|
||||
}
|
||||
|
||||
this.retryTimeoutId = setTimeout(() => {
|
||||
this.signalRconnection.start(this.signalRconnectionOptions);
|
||||
this.retryInterval = Math.min(this.retryInterval + 5, 30);
|
||||
@@ -328,8 +334,9 @@ class SignalRConnector extends Component {
|
||||
|
||||
this.props.setAppValue({
|
||||
isConnected: false,
|
||||
isReconnecting: true,
|
||||
isDisconnected: true
|
||||
isReconnecting: true
|
||||
// Don't set isDisconnected yet, it'll be set it if it's disconnected
|
||||
// for ~105 seconds (retry interval reaches 30 seconds)
|
||||
});
|
||||
|
||||
this.retryConnection();
|
||||
|
||||
Reference in New Issue
Block a user