aboutsummaryrefslogtreecommitdiffstats
path: root/library/cpp/monlib
diff options
context:
space:
mode:
authorpg <pg@yandex-team.com>2023-09-21 01:35:36 +0300
committerpg <pg@yandex-team.com>2023-09-21 01:56:41 +0300
commitc9a0ecf9bb9f37d6aeaec732dceb4aead3d78988 (patch)
tree51105a3bb9a44e3bdc9d10e21d0b43665f96cbeb /library/cpp/monlib
parent13365ead1569a814c889c1fb06fcaae89808bbe1 (diff)
downloadydb-c9a0ecf9bb9f37d6aeaec732dceb4aead3d78988.tar.gz
Diffstat (limited to 'library/cpp/monlib')
-rw-r--r--library/cpp/monlib/service/service.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/library/cpp/monlib/service/service.h b/library/cpp/monlib/service/service.h
index 2f66dddaf8..977b5c14c6 100644
--- a/library/cpp/monlib/service/service.h
+++ b/library/cpp/monlib/service/service.h
@@ -63,6 +63,10 @@ namespace NMonitoring {
TMtHttpServer(const TOptions& options, THandler handler, IThreadFactory* pool = nullptr);
TMtHttpServer(const TOptions& options, THandler handler, TSimpleSharedPtr<IThreadPool> pool);
+ ~TMtHttpServer() override {
+ Stop();
+ }
+
/**
* This will cause the server start to accept incoming connections.
*