]> git.lizzy.rs Git - minetest.git/commitdiff
Fix uncought deserialization error on receiving data
authorsapier <Sapier at GMX dot net>
Sat, 21 Jun 2014 22:05:41 +0000 (00:05 +0200)
committersapier <Sapier at GMX dot net>
Sat, 21 Jun 2014 22:05:41 +0000 (00:05 +0200)
src/server.cpp

index 7c4c48c48f352dacf8de98cb78033dfc15867d73..54a139849e554bb0edb45ceef6a965fe10b03054 100644 (file)
@@ -1173,6 +1173,11 @@ void Server::Receive()
                                "InvalidIncomingDataException: what()="
                                <<e.what()<<std::endl;
        }
+       catch(SerializationError &e) {
+               infostream<<"Server::Receive(): "
+                               "SerializationError: what()="
+                               <<e.what()<<std::endl;
+       }
        catch(con::PeerNotFoundException &e)
        {
                //NOTE: This is not needed anymore