1
0
Fork 0
mirror of https://github.com/warmcat/libwebsockets.git synced 2025-03-09 00:00:04 +01:00

ss: proxy: smd: use correct zombie vs message check

This commit is contained in:
Andy Green 2020-07-08 19:47:55 +01:00
parent 650a8781e9
commit 73424ae66a

View file

@ -94,7 +94,7 @@ _lws_smd_msg_assess_peers_interested(lws_smd_t *smd, lws_smd_msg_t *msg)
(!pr->timestamp_left || /* if zombie, only contribute to
* refcount if msg from before we
* left */
pr->timestamp_left < msg->timestamp) &&
pr->timestamp_left >= msg->timestamp) &&
(msg->_class & pr->_class_filter))
/*
* This peer wants to consume it