This commit is contained in:
J. Nick Koston
2025-12-27 18:14:11 -10:00
parent 96b2888505
commit 1290929684
4 changed files with 11 additions and 8 deletions

View File

@@ -189,7 +189,7 @@ void APIServer::loop() {
#ifdef USE_API_CLIENT_DISCONNECTED_TRIGGER
char peername_buf[socket::PEERNAME_MAX_LEN];
client->get_peername_to(peername_buf);
this->client_disconnected_trigger_->trigger(client->get_name(), StringRef(peername_buf));
this->client_disconnected_trigger_->trigger(std::string(client->get_name()), std::string(peername_buf));
#endif
#ifdef USE_API_USER_DEFINED_ACTION_RESPONSES
this->unregister_active_action_calls_for_connection(client.get());