mirror of
https://github.com/falk-werner/webfuse
synced 2026-03-02 03:40:24 +00:00
sepated unit and integration tests
This commit is contained in:
@@ -35,7 +35,11 @@ extern "C" int webfuse_client_callback(lws * wsi, lws_callback_reasons reason, v
|
||||
break;
|
||||
case LWS_CALLBACK_CLIENT_CONNECTION_ERROR:
|
||||
std::cout << "connection error" << std::endl;
|
||||
// fall-through
|
||||
context->connection = nullptr;
|
||||
context->requests = std::move(std::queue<webfuse::messagewriter>());
|
||||
context->current_message.clear();
|
||||
context->connection_listener(false);
|
||||
break;
|
||||
case LWS_CALLBACK_CLIENT_CLOSED:
|
||||
std::cout << "closed" << std::endl;
|
||||
context->connection = nullptr;
|
||||
|
||||
Reference in New Issue
Block a user