diff options
author | Lee Salzman <[email protected]> | 2023-02-04 22:16:19 -0500 |
---|---|---|
committer | Lee Salzman <[email protected]> | 2023-02-04 22:16:19 -0500 |
commit | d7e5470cf7dd4858a9da90aa92a79ea82754ffde (patch) | |
tree | 317644bca18756e6e8d9ba1cd45227a850e8fdbc /host.c | |
parent | bb788ea48bf06184e1553da4e0375a9994ab34d3 (diff) | |
download | enet-d7e5470cf7dd4858a9da90aa92a79ea82754ffde.tar.gz enet-d7e5470cf7dd4858a9da90aa92a79ea82754ffde.zip |
maintain a separate queue for outgoing send reliable packets
Diffstat (limited to 'host.c')
-rw-r--r-- | host.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -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); |