]> git.lyx.org Git - lyx.git/blobdiff - src/ServerSocket.cpp
Set "dryrun" to true for XHTML copying routine. This suppresses
[lyx.git] / src / ServerSocket.cpp
index 7b9d6df5af71c81d885c36c29045127a2964ae47..3d73a67ed6d955c08318323357856f5ec10aa8f9 100644 (file)
@@ -41,7 +41,6 @@ using namespace std;
 using namespace lyx::support;
 
 
-
 namespace lyx {
 
 // Address is the unix address for the socket.
@@ -125,8 +124,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;