1
0
mirror of https://github.com/esp8266/Arduino.git synced 2025-06-12 01:53:07 +03:00

emulation on host: fix internal udp management (#8561)

* emulation on host: fix internal udp management
help dtors: clear map before exit, check with valgrind

* fix style
This commit is contained in:
david gauchard
2022-05-15 22:06:20 +02:00
committed by GitHub
parent 80c0570620
commit 33afdc2723
4 changed files with 10 additions and 2 deletions

View File

@ -33,7 +33,7 @@
#include <poll.h>
#include <map>
std::map<int, UdpContext*> udps;
static std::map<int, UdpContext*> udps;
void register_udp(int sock, UdpContext* udp)
{
@ -58,3 +58,8 @@ void check_incoming_udp()
}
}
}
void mock_stop_udp()
{
udps.clear();
}