aboutsummaryrefslogtreecommitdiffhomepage
path: root/host.c
diff options
context:
space:
mode:
authorLee Salzman <[email protected]>2023-02-04 22:16:19 -0500
committerLee Salzman <[email protected]>2023-02-04 22:16:19 -0500
commitd7e5470cf7dd4858a9da90aa92a79ea82754ffde (patch)
tree317644bca18756e6e8d9ba1cd45227a850e8fdbc /host.c
parentbb788ea48bf06184e1553da4e0375a9994ab34d3 (diff)
downloadenet-d7e5470cf7dd4858a9da90aa92a79ea82754ffde.tar.gz
enet-d7e5470cf7dd4858a9da90aa92a79ea82754ffde.zip
maintain a separate queue for outgoing send reliable packets
Diffstat (limited to 'host.c')
-rw-r--r--host.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/host.c b/host.c
index ed0c0eb..da9d5b2 100644
--- a/host.c
+++ b/host.c
@@ -96,6 +96,7 @@ enet_host_create (const ENetAddress * address, size_t peerCount, size_t channelL
host -> totalSentPackets = 0;
host -> totalReceivedData = 0;
host -> totalReceivedPackets = 0;
+ host -> totalQueued = 0;
host -> connectedPeers = 0;
host -> bandwidthLimitedPeers = 0;
@@ -125,6 +126,7 @@ enet_host_create (const ENetAddress * address, size_t peerCount, size_t channelL
enet_list_clear (& currentPeer -> sentReliableCommands);
enet_list_clear (& currentPeer -> sentUnreliableCommands);
enet_list_clear (& currentPeer -> outgoingCommands);
+ enet_list_clear (& currentPeer -> outgoingSendReliableCommands);
enet_list_clear (& currentPeer -> dispatchedCommands);
enet_peer_reset (currentPeer);