summaryrefslogtreecommitdiffstats
path: root/src/StatsPublish.h
diff options
context:
space:
mode:
authorMatthias P. Braendli <matthias.braendli@mpb.li>2019-11-18 10:58:09 +0100
committerMatthias P. Braendli <matthias.braendli@mpb.li>2019-11-18 10:58:09 +0100
commitbd2711937d9a4d8e8b63db1ccbc8f3633323da6d (patch)
tree7112e370af53f4cbe626384a43eb59470cf14658 /src/StatsPublish.h
parentaafa06fa15f1ef274fef2df9e939323ed61e670e (diff)
downloadODR-AudioEnc-bd2711937d9a4d8e8b63db1ccbc8f3633323da6d.tar.gz
ODR-AudioEnc-bd2711937d9a4d8e8b63db1ccbc8f3633323da6d.tar.bz2
ODR-AudioEnc-bd2711937d9a4d8e8b63db1ccbc8f3633323da6d.zip
Fix StatsPublisher socket leak
Diffstat (limited to 'src/StatsPublish.h')
-rw-r--r--src/StatsPublish.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/StatsPublish.h b/src/StatsPublish.h
index f593c7c..7ff7da4 100644
--- a/src/StatsPublish.h
+++ b/src/StatsPublish.h
@@ -34,6 +34,9 @@
class StatsPublisher {
public:
StatsPublisher(const std::string& socket_path);
+ StatsPublisher(const StatsPublisher& other) = delete;
+ StatsPublisher& operator=(const StatsPublisher& other) = delete;
+ ~StatsPublisher();
/*! Update peak audio level information */
void update_audio_levels(int16_t audiolevel_left, int16_t audiolevel_right);