]> git.meshlink.io Git - utcp/blobdiff - test.c
Allow changing the accept callbacks.
[utcp] / test.c
diff --git a/test.c b/test.c
index 8ad46c63f49eada35109e303582ed121e8444953..a37f85618db6c2b3eef6200711635fab0d3d1fc1 100644 (file)
--- a/test.c
+++ b/test.c
@@ -39,6 +39,7 @@ ssize_t do_recv(struct utcp_connection *c, const void *data, size_t len) {
 void do_accept(struct utcp_connection *nc, uint16_t port) {
        utcp_accept(nc, do_recv, NULL);
        c = nc;
+       utcp_set_accept_cb(c->utcp, NULL, NULL);
 }
 
 ssize_t do_send(struct utcp *utcp, const void *data, size_t len) {