Skip to content

Commit

Permalink
Reverse proxy, graph visual bug
Browse files Browse the repository at this point in the history
  • Loading branch information
veniware committed Sep 23, 2024
1 parent 7cd0787 commit 3ae456f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Protest/Front/reverseproxy.js
Original file line number Diff line number Diff line change
Expand Up @@ -386,7 +386,7 @@ class ReverseProxy extends List {
this.ws.onerror = error=> {};
}

UpdateGraph() {
UpdateGraph(isSelect=false) {
this.canvas.width = this.canvas.width; //clear canvas

if (!this.args.select || !this.history[this.args.select]) {
Expand Down Expand Up @@ -474,7 +474,7 @@ class ReverseProxy extends List {
this.ctx.stroke();
this.ctx.closePath();

if (this.ws !== null && this.ws.readyState === 1) {
if (this.ws !== null && this.ws.readyState === 1 && !isSelect) {
this.graphCount++;
}
}
Expand All @@ -499,7 +499,7 @@ class ReverseProxy extends List {
this._tempSelect = guid;
}

this.UpdateGraph();
this.UpdateGraph(true);

if (this.isClosed || this.ws === null || this.ws.readyState !== 1) {
return;
Expand Down

0 comments on commit 3ae456f

Please sign in to comment.