1
0
mirror of https://github.com/janet-lang/janet synced 2025-01-24 14:16:52 +00:00

Explicitly disallow handler for datagram server.

This commit is contained in:
Calvin Rose 2020-06-13 08:29:48 -05:00
parent ce2079104a
commit b1a4f05b5a

View File

@ -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) */