]> git.tdb.fi Git - xinema.git/blobdiff - source/client.cpp
Protect some important parts with mutexes
[xinema.git] / source / client.cpp
index 0e87e205055f6a5c796ce40f53a056fc4293ca01..8d61f3fa51e56c9a78d12a322e4ea973c9a479ba 100644 (file)
@@ -89,6 +89,7 @@ void Client::process_command(const string &cmd)
 
 void Client::send_reply(const string &reply)
 {
+       Msp::MutexLock lock(mutex);
        socket->write(reply);
        socket->put('\n');
 }