aboutsummaryrefslogtreecommitdiffhomepage
path: root/host.c
diff options
context:
space:
mode:
authorLee Salzman <[email protected]>2020-07-23 14:35:39 -0400
committerLee Salzman <[email protected]>2020-07-23 14:35:39 -0400
commit4f3dbbaeb19a54a09cd4a984c8c5107436a2b197 (patch)
tree74489d69a74d5af9147b6012ba7f390e21903b5e /host.c
parent47d2e192aa6a0294eaed69a95a7755c890759106 (diff)
downloadenet-4f3dbbaeb19a54a09cd4a984c8c5107436a2b197.tar.gz
enet-4f3dbbaeb19a54a09cd4a984c8c5107436a2b197.zip
fix clearing of outgoing command queue
Diffstat (limited to 'host.c')
-rw-r--r--host.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/host.c b/host.c
index 3be6c09..3b2180f 100644
--- a/host.c
+++ b/host.c
@@ -124,8 +124,7 @@ enet_host_create (const ENetAddress * address, size_t peerCount, size_t channelL
enet_list_clear (& currentPeer -> acknowledgements);
enet_list_clear (& currentPeer -> sentReliableCommands);
enet_list_clear (& currentPeer -> sentUnreliableCommands);
- enet_list_clear (& currentPeer -> outgoingReliableCommands);
- enet_list_clear (& currentPeer -> outgoingUnreliableCommands);
+ enet_list_clear (& currentPeer -> outgoingCommands);
enet_list_clear (& currentPeer -> dispatchedCommands);
enet_peer_reset (currentPeer);