commit 2701b1663331f951821fecac149d5d0687c6bf66
parent 84670b825e2e6847cc58ff6c595b30e3eb35ca2f
Author: Yersa Nordman <yersa@finwo.nl>
Date: Fri, 4 Aug 2023 20:39:23 +0200
Fix onListen call
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/fnet.c b/src/fnet.c
@@ -234,7 +234,7 @@ struct fnet_t * fnet_listen(const char *address, uint16_t port, const struct fne
}
if (conn->ext.onListen) {
- conn->ext.onConnect(&((struct fnet_ev){
+ conn->ext.onListen(&((struct fnet_ev){
.connection = (struct fnet_t *)conn,
.type = FNET_EVENT_LISTEN,
.buffer = NULL,