From ddfeae90d0f537805ed4d1ca87618f41f8032359 Mon Sep 17 00:00:00 2001 From: me-no-dev Date: Wed, 11 Jul 2018 20:46:54 +0200 Subject: [PATCH] Fix AsyncUDP server exception --- libraries/AsyncUDP/src/AsyncUDP.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/libraries/AsyncUDP/src/AsyncUDP.cpp b/libraries/AsyncUDP/src/AsyncUDP.cpp index eb4b9621..6fff201a 100644 --- a/libraries/AsyncUDP/src/AsyncUDP.cpp +++ b/libraries/AsyncUDP/src/AsyncUDP.cpp @@ -286,6 +286,8 @@ AsyncUDPPacket::AsyncUDPPacket(AsyncUDP *udp, pbuf *pb, const ip_addr_t *raddr, _len = pb->len; _index = 0; + pbuf_ref(_pb); + //memcpy(&_remoteIp, raddr, sizeof(ip_addr_t)); _remoteIp.type = raddr->type; _localIp.type = _remoteIp.type;