@@ -73,7 +73,7 @@ class App extends Component {
73
73
configData : { } ,
74
74
initialHost : "" ,
75
75
host : "" ,
76
- updateInterval : 500 ,
76
+ updateInterval : 1000 ,
77
77
connected : false ,
78
78
sideBarOpen : false ,
79
79
dragNDropActivated : false ,
@@ -91,7 +91,7 @@ class App extends Component {
91
91
this . jsonVersionChecked = false ;
92
92
this . fetchCloeApi = 0 ;
93
93
this . bufferInterval = 0 ;
94
- this . defaultUpdateInterval = 500 ;
94
+ this . defaultUpdateInterval = 1000 ;
95
95
// Definitions for the one-time fetched information.
96
96
this . controllers = [ ] ;
97
97
this . simulators = [ ] ;
@@ -523,18 +523,16 @@ class App extends Component {
523
523
axios
524
524
. get ( `http://${ this . state . host } ` )
525
525
. then ( ( ) => {
526
- // If connected set new interval.
527
- this . renewFetchInterval ( this . defaultUpdateInterval ) ;
528
526
if ( ! this . state . connected ) {
529
527
this . setState ( { connected : true , startupPhase : 2 } ) ;
530
528
}
531
529
} )
532
530
. catch ( ( ) => {
533
531
this . setState ( { connected : false } ) ;
534
- if ( this . startupPhase === 2 ) {
532
+ if ( this . state . startupPhase === 2 ) {
535
533
this . setState ( { startupPhase : 1 } ) ;
536
534
}
537
- if ( this . startupPhase === 3 ) {
535
+ if ( this . state . startupPhase === 3 ) {
538
536
this . setState ( { startupPhase : 4 } ) ;
539
537
}
540
538
} ) ;
@@ -609,7 +607,7 @@ class App extends Component {
609
607
startupStepFour = ( ) => {
610
608
if ( this . state . connected ) {
611
609
this . setState ( { startupPhase : 2 } ) ;
612
- this . renewFetchInterval ( 100 ) ;
610
+ this . renewFetchInterval ( this . defaultUpdateInterval ) ;
613
611
}
614
612
} ;
615
613
0 commit comments