Fuzz ws->unsubscribeAll

This commit is contained in:
Alex Hultman
2020-01-12 18:56:54 +01:00
parent 2de34fa3f6
commit dde628956b
+2 -1
View File
@@ -51,7 +51,8 @@ extern "C" int LLVMFuzzerInitialize(int *argc, char ***argv) {
},
.close = [](auto *ws, int code, std::string_view message) {
/* Not necessary but we'll call it for coverage */
ws->unsubscribeAll();
}
}).listen(9001, [](us_listen_socket_t *listenSocket) {
if (listenSocket) {