Skip to content
This repository has been archived by the owner on Feb 4, 2023. It is now read-only.

Commit

Permalink
chore: remove extra logging in frontend connector
Browse files Browse the repository at this point in the history
  • Loading branch information
qdot committed May 31, 2021
1 parent cb7731d commit 422e497
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions packages/core/src/FrontendConnector.ts
Original file line number Diff line number Diff line change
Expand Up @@ -238,7 +238,6 @@ export abstract class FrontendConnector extends EventEmitter {
if (aMsg.processError) {
this._isServerProcessRunning = false;
this.emit("serverdisconnect");
console.log("Process died, emitting");
this._devices.clear();
this._devices_change_tracker += 1;
this.EmitServerMessage(aMsg);
Expand All @@ -260,7 +259,6 @@ export abstract class FrontendConnector extends EventEmitter {
if (aMsg.processEnded) {
this._isServerProcessRunning = false;
this.emit("serverdisconnect");
console.log("Process ended, emitting");
this._devices.clear();
this._devices_change_tracker += 1;
return;
Expand All @@ -275,13 +273,11 @@ export abstract class FrontendConnector extends EventEmitter {
}

if (aMsg.deviceConnected) {
console.log("Got Device Connected");
this._devices.set(aMsg.deviceConnected!.deviceId!, aMsg.deviceConnected!.deviceName!);
this._devices_change_tracker += 1;
}

if (aMsg.deviceDisconnected) {
console.log("Got Device disconnected");
this._devices.delete(aMsg.deviceDisconnected!.deviceId!);
this._devices_change_tracker += 1;
}
Expand Down

0 comments on commit 422e497

Please sign in to comment.