diff options
author | Jannis M. Hoffmann <jannis@fehcom.de> | 2023-10-11 23:49:17 +0200 |
---|---|---|
committer | Jannis M. Hoffmann <jannis@fehcom.de> | 2023-10-11 23:49:17 +0200 |
commit | ef6b62fde0923b474e9b60c209642caa234e7cc9 (patch) | |
tree | 407c44797d4b6d144e756a842a1bcce1b756088c /src | |
parent | 52a9285ca78cb378c1b3c4487049a2d867a45d63 (diff) |
fix dangling reference in BrokerFactory constructormain
Diffstat (limited to 'src')
-rw-r--r-- | src/broker.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/broker.cc b/src/broker.cc index 59c23bb..24d5c7b 100644 --- a/src/broker.cc +++ b/src/broker.cc @@ -14,7 +14,7 @@ using std::string; BrokerFactory::BrokerFactory() { - Parser p{Session::getInstance()}; + static Parser p{Session::getInstance()}; brokers.emplace(Session::State::NONAUTHENTICATED, Broker(p)); brokers.emplace(Session::State::AUTHENTICATED, Broker(p)); |