From b1a4f05b5a792b126089a5ef5f761f4528b2bb23 Mon Sep 17 00:00:00 2001 From: Calvin Rose Date: Sat, 13 Jun 2020 08:29:48 -0500 Subject: [PATCH] Explicitly disallow handler for datagram server. --- src/core/net.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/core/net.c b/src/core/net.c index 9e4b5a2a..d4b5e403 100644 --- a/src/core/net.c +++ b/src/core/net.c @@ -630,8 +630,7 @@ static Janet cfun_net_server(int32_t argc, Janet *argv) { return janet_wrap_abstract(stream); } else { /* Server with handler */ - /* TODO - state machine */ - janet_panic("nyi"); + janet_panic("handler must be nil for datagram server"); } } else { /* Stream server (TCP) */