summaryrefslogtreecommitdiff
path: root/src/network/connection.h
diff options
context:
space:
mode:
authorsfan5 <sfan5@live.de>2020-07-23 19:47:58 +0200
committerGitHub <noreply@github.com>2020-07-23 19:47:58 +0200
commit8ca602150d4fdce6dcc63fa13e22aeaac5b927cc (patch)
tree7308e1baea68ae3c48d6b61d4bb0ee1475998c7f /src/network/connection.h
parent76afde861de0afa4c69020b16cf52b023ac88de5 (diff)
downloadminetest-8ca602150d4fdce6dcc63fa13e22aeaac5b927cc.tar.gz
minetest-8ca602150d4fdce6dcc63fa13e22aeaac5b927cc.tar.bz2
minetest-8ca602150d4fdce6dcc63fa13e22aeaac5b927cc.zip
Replace std::list<session_t> in networking code (#10215)
Diffstat (limited to 'src/network/connection.h')
-rw-r--r--src/network/connection.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/network/connection.h b/src/network/connection.h
index 47b0805ce..2dc6d4397 100644
--- a/src/network/connection.h
+++ b/src/network/connection.h
@@ -30,7 +30,7 @@ with this program; if not, write to the Free Software Foundation, Inc.,
#include "networkprotocol.h"
#include <iostream>
#include <fstream>
-#include <list>
+#include <vector>
#include <map>
class NetworkPacket;
@@ -795,7 +795,7 @@ protected:
void PrintInfo(std::ostream &out);
- std::list<session_t> getPeerIDs()
+ std::vector<session_t> getPeerIDs()
{
MutexAutoLock peerlock(m_peers_mutex);
return m_peer_ids;
@@ -816,7 +816,7 @@ private:
u32 m_protocol_id;
std::map<session_t, Peer *> m_peers;
- std::list<session_t> m_peer_ids;
+ std::vector<session_t> m_peer_ids;
std::mutex m_peers_mutex;
std::unique_ptr<ConnectionSendThread> m_sendThread;