diff --git a/src/common/communication.h b/src/common/communication.h index b268b47a..4b085d1d 100644 --- a/src/common/communication.h +++ b/src/common/communication.h @@ -285,8 +285,8 @@ void passthrough_event(boost::asio::local::stream_protocol::socket& socket, } } - const intptr_t return_value = callback(plugin, event.opcode, event.option, - event.index, payload, event.option); + const intptr_t return_value = callback(plugin, event.opcode, event.index, + event.value, payload, event.option); // Only write back the value from `payload` if we were passed an empty // buffer to write into