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:
@ -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();
|
||||
}
|
||||
|
Reference in New Issue
Block a user