Update api_connection.cpp

This commit is contained in:
Nick Kinnan 2024-10-15 22:55:08 -07:00 committed by GitHub
parent 66909ef1a4
commit 0e0feec862
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -1660,7 +1660,7 @@ void APIConnection::send_event_info(event::Event *event) {
} }
bool APIConnection::try_send_event(APIConnection *api, void *v_event) { bool APIConnection::try_send_event(APIConnection *api, void *v_event) {
event::Event *event = reinterpret_cast<event::Event *>(v_event); event::Event *event = reinterpret_cast<event::Event *>(v_event);
return APIConnection::try_send_event(api, event, *(event->state)); return APIConnection::try_send_event(api, event, *(event->last_event_type));
} }
bool APIConnection::try_send_event(APIConnection *api, event::Event *event, std::string event_type) { bool APIConnection::try_send_event(APIConnection *api, event::Event *event, std::string event_type) {
EventResponse resp{}; EventResponse resp{};