Browse Source

fix analytics restart

pull/1/head
amper43 6 years ago
parent
commit
aa43bac335
  1. 3
      server/src/services/analytics_service.ts

3
server/src/services/analytics_service.ts

@ -171,12 +171,13 @@ export class AnalyticsService {
private async _onAnalyticsDown() {
console.log('Analytics is down');
if(process.env.NODE_ENV !== 'development' && process.env.INSIDE_DOCKER !== 'true') {
if(this._productionMode && !this._inDocker) {
await AnalyticsService._runAnalyticsProcess(this._zmqConnectionString);
}
}
private _onAnalyticsMessage(data: any) {
let text = data.toString();
if(text === 'PONG') {
this._pingResponded = true;

Loading…
Cancel
Save