]> git.lyx.org Git - lyx.git/blobdiff - src/ServerSocket.cpp
More no-math fonts
[lyx.git] / src / ServerSocket.cpp
index 7b9d6df5af71c81d885c36c29045127a2964ae47..4c34212cb52b597f55e7793974392299abca0053 100644 (file)
@@ -125,8 +125,10 @@ void ServerSocket::serverCallback()
 // if the connection has been closed
 void ServerSocket::dataCallback(int fd)
 {
-       shared_ptr<LyXDataSocket> client = clients[fd];
-
+       map<int, shared_ptr<LyXDataSocket> >::const_iterator it = clients.find(fd);
+       if (it == clients.end())
+               return;
+       shared_ptr<LyXDataSocket> client = it->second;
        string line;
        size_t pos;
        bool saidbye = false;