summaryrefslogtreecommitdiff
path: root/connectionList.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'connectionList.cpp')
-rw-r--r--connectionList.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/connectionList.cpp b/connectionList.cpp
index 0395284..2b857f3 100644
--- a/connectionList.cpp
+++ b/connectionList.cpp
@@ -41,9 +41,10 @@ ConnectionList::~ConnectionList()
{
}
-void ConnectionList::addConnection()
+void ConnectionList::addConnection(ConnectionParam &conn, const std::string &name)
{
Lock lock(mutex_);
+ connections_[name]=conn;
}
void ConnectionList::clear()