]> git.lizzy.rs Git - dragonfireclient.git/blobdiff - src/clientiface.h
Network cleanup (#6302)
[dragonfireclient.git] / src / clientiface.h
index 3ee09317df418d52762bb8794e33eaddfbe3d980..4d61ae74e45ee89986c5f6ab81c24d0c2da45cc7 100644 (file)
@@ -418,7 +418,7 @@ class ClientInterface {
 
        friend class Server;
 
-       ClientInterface(con::Connection* con);
+       ClientInterface(const std::shared_ptr<con::Connection> &con);
        ~ClientInterface();
 
        /* run sync step */
@@ -487,7 +487,7 @@ class ClientInterface {
        void UpdatePlayerList();
 
        // Connection
-       con::Connection* m_con;
+       std::shared_ptr<con::Connection> m_con;
        std::mutex m_clients_mutex;
        // Connected clients (behind the con mutex)
        RemoteClientMap m_clients;