summaryrefslogtreecommitdiff
path: root/router.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'router.cpp')
-rw-r--r--router.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/router.cpp b/router.cpp
index 98cdce4..33cddb2 100644
--- a/router.cpp
+++ b/router.cpp
@@ -33,7 +33,7 @@
#include "router.h"
-Router::Router()
+Router::Router(ConnectionList& cl) : con_list_(cl)
{
}
@@ -49,5 +49,5 @@ void Router::addConnection(ConnectionParam &conn,const std::string &name)
ConnectionParam Router::getRoute()
{
Lock lock(mutex_);
-
+ return con_list_.getConnection();
}