diff options
author | David Robillard <d@drobilla.net> | 2012-05-10 02:14:55 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2012-05-10 02:14:55 +0000 |
commit | 281bbcc6a7208c28283bc9bdd521c5d6cc48a60f (patch) | |
tree | 6cfc2bf6c3c0d92b3cb5a79a4d019d5952d41989 /src/server/ClientBroadcaster.cpp | |
parent | cd2ac251d7e076e3bf25f2640d1684447efa83d3 (diff) | |
download | ingen-281bbcc6a7208c28283bc9bdd521c5d6cc48a60f.tar.gz ingen-281bbcc6a7208c28283bc9bdd521c5d6cc48a60f.tar.bz2 ingen-281bbcc6a7208c28283bc9bdd521c5d6cc48a60f.zip |
Bidirectional socket communication (GUI once again works remotely).
git-svn-id: http://svn.drobilla.net/lad/trunk/ingen@4335 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/server/ClientBroadcaster.cpp')
-rw-r--r-- | src/server/ClientBroadcaster.cpp | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/src/server/ClientBroadcaster.cpp b/src/server/ClientBroadcaster.cpp index e44475b1..46e6fb2f 100644 --- a/src/server/ClientBroadcaster.cpp +++ b/src/server/ClientBroadcaster.cpp @@ -39,14 +39,8 @@ void ClientBroadcaster::register_client(const URI& uri, Interface* client) { Glib::Mutex::Lock lock(_clients_mutex); - Clients::iterator i = _clients.find(uri); - - if (i == _clients.end()) { - _clients[uri] = client; - LOG(info) << "Registered client: " << uri << endl; - } else { - LOG(warn) << "Client already registered: " << uri << endl; - } + LOG(info) << "Registered client: " << uri << endl; + _clients[uri] = client; } /** Remove a client from the list of registered clients. |