We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a631558 commit 8f17e26Copy full SHA for 8f17e26
2 files changed
src/runtime/udp.hh
@@ -104,7 +104,7 @@ namespace ssc::runtime::udp {
104
struct sockaddr_in addr;
105
106
// callbacks
107
- UDPReceiveCallback receiveCallback;
+ UDPReceiveCallback receiveCallback = nullptr;
108
Vector<Function<void()>> onclose;
109
110
// instance state
src/runtime/udp/manager.cc
@@ -31,7 +31,7 @@ namespace ssc::runtime::udp {
31
32
bool SocketManager::has (ID id) {
33
Lock lock(this->mutex);
34
- return this->sockets.find(id) != this->sockets.end();
+ return this->sockets.contains(id);
35
}
36
37
void SocketManager::remove (ID id) {
0 commit comments