timeout()

in source/frontend/src/app/pages/sftp-main/sftp-main.component.ts [200:215]


  timeout() {
    setTimeout(() => {
      this.sftpService.isConnected().subscribe((result) => {
        if (this.page != 'settings') {
          this.page = 'browse';
          this.timeout();
        }
        this.health_ok = true;
      },
        (error) => {
          this.page = 'settings';
          this.health_ok = false;
        });

    }, 5000);
  }