Skip to content
Snippets Groups Projects
Commit ede31f34 authored by Sandro Weber's avatar Sandro Weber
Browse files

Merged in NRRPLT-0000_hotfix-build-failure (pull request #57)

[HOTFIX] npm build failure

* [HOTFIX] npm build failure
parent a5aaab8d
No related branches found
No related tags found
No related merge requests found
import FlexLayout from 'flexlayout-react';
import DescriptionIcon from '@material-ui/icons/Description';
import ListAltIcon from '@material-ui/icons/ListAlt';
const appConfig = window.appConfig;
import NrpCoreDashboard from '../nrp-core-dashboard/nrp-core-dashboard';
import TransceiverFunctionEditor from '../tf-editor/tf-editor';
import XpraView from '../xpra/xpra-view';
import { SIM_TOOL } from '../constants';
const appConfig = window.appConfig;
let _instance = null;
const SINGLETON_ENFORCER = Symbol();
......
......@@ -74,16 +74,13 @@ export class HttpProxyService extends HttpService {
let response;
try {
// try to fetch the request
response = await fetch(requestURL, options);
// emit CONNECTED event, if needed
EventProxyService.instance.emitConnected();
this.failedRequestsCount = 0;
}
catch (error) {
this.failedRequestsCount++; // increment counter on unsuccessful request
if (this.failedRequestsCount >= MAX_FAILED_REQUESTS) { // only emit event after MAX_FAILED_REQUESTS unsuccessful requests
// emit DISCONNECTED event
this.failedRequestsCount++;
if (this.failedRequestsCount >= MAX_FAILED_REQUESTS) {
EventProxyService.instance.emitDisconnected({
code: requestURL.href,
data:
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment