summaryrefslogtreecommitdiff
path: root/ecp/src/platform
diff options
context:
space:
mode:
authorUros Majstorovic <majstor@majstor.org>2024-05-24 23:01:53 +0200
committerUros Majstorovic <majstor@majstor.org>2024-05-24 23:01:53 +0200
commitb0d40894428d7edc578156812d61bdcdd10165b7 (patch)
tree214aa487716083c282a8a0301ab5f3e5c78e339b /ecp/src/platform
parent9c8ae2d28f0c3e75371fbae6e9f688798b44255c (diff)
vconn close implemented; conn open will not deallocate connection on failure
Diffstat (limited to 'ecp/src/platform')
-rw-r--r--ecp/src/platform/fe310/transport.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/ecp/src/platform/fe310/transport.c b/ecp/src/platform/fe310/transport.c
index b53534d..1ae0f56 100644
--- a/ecp/src/platform/fe310/transport.c
+++ b/ecp/src/platform/fe310/transport.c
@@ -35,11 +35,8 @@ static void packet_handler(unsigned char type, unsigned char *buffer, uint16_t l
ctx = _ecp_tr_sock->ctx;
rv = ecp_pkt_handle(_ecp_tr_sock, NULL, &addr, &bufs, len-EOS_SOCK_SIZE_UDP_HDR);
- if ((rv < 0) && ctx->logger) {
- int _rv = rv;
+ if (rv < 0) ECP_LOG_ERR(_ecp_tr_sock, "packet_handler: err:%d\n", (int)rv);
- ctx->logger("packet_handler: err:%d\n", _rv);
- }
if (bufs.packet->buffer) {
eos_net_free(buffer, 0);
} else {