From a11a47113ec716ab7d98f442bd43b73fb32cacc1 Mon Sep 17 00:00:00 2001 From: Nova Date: Sat, 2 Aug 2025 16:59:47 +0330 Subject: [PATCH] fix clearing connection list --- core/.gitignore | 2 ++ core/protorpc/go.sum | 2 ++ src/stats/connectionLister/connectionLister.cpp | 2 +- 3 files changed, 5 insertions(+), 1 deletion(-) create mode 100644 core/protorpc/go.sum diff --git a/core/.gitignore b/core/.gitignore index 5410034..e32d5a3 100644 --- a/core/.gitignore +++ b/core/.gitignore @@ -4,3 +4,5 @@ *.exe *.dat *.db +server/gen/*.pb.go +server/gen/*.pb.*.go diff --git a/core/protorpc/go.sum b/core/protorpc/go.sum new file mode 100644 index 0000000..0fb19b9 --- /dev/null +++ b/core/protorpc/go.sum @@ -0,0 +1,2 @@ +github.com/golang/protobuf v1.5.4/go.mod h1:lnTiLA8Wa4RWRcIUkrtSVa5nRhsEGBg48fD6rSs7xps= +google.golang.org/protobuf v1.36.6/go.mod h1:jduwjTPXsFjZGTmRluh+L6NjiWu7pchiJ2/5YcXBHnY= diff --git a/src/stats/connectionLister/connectionLister.cpp b/src/stats/connectionLister/connectionLister.cpp index 27137b6..bd7dcbe 100644 --- a/src/stats/connectionLister/connectionLister.cpp +++ b/src/stats/connectionLister/connectionLister.cpp @@ -40,7 +40,7 @@ namespace Stats { bool ok; libcore::ListConnectionsResp resp = API::defaultClient->ListConnections(&ok); - if (!ok || resp.connections.empty()) + if (!ok) { return; }