We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 9ec6c3f + c280260 commit 94bc0daCopy full SHA for 94bc0da
1 file changed
src/src/udp/APacketHandler.cpp
@@ -75,6 +75,10 @@ void polymorph::network::udp::APacketHandler::_broadcastReceivedPacket(const pol
75
std::vector<std::shared_ptr<std::function<int(const PacketHeader &, const std::vector<std::byte> &)>>> callbacksToPop;
76
77
for (auto &callback : _receiveCallbacks[header.opId]) {
78
+ if (!callback) {
79
+ callbacksToPop.push_back(callback);
80
+ continue;
81
+ }
82
auto res = (*callback)(header, bytes);
83
if (res == 0)
84
callbacksToPop.push_back(callback);
0 commit comments