aboutsummaryrefslogtreecommitdiff
path: root/client-native-lib/src/instance.rs
diff options
context:
space:
mode:
Diffstat (limited to 'client-native-lib/src/instance.rs')
-rw-r--r--client-native-lib/src/instance.rs3
1 files changed, 2 insertions, 1 deletions
diff --git a/client-native-lib/src/instance.rs b/client-native-lib/src/instance.rs
index 74e6f3d..3edf50a 100644
--- a/client-native-lib/src/instance.rs
+++ b/client-native-lib/src/instance.rs
@@ -113,7 +113,8 @@ impl Instance {
pub async fn on_relay(&self, sender: usize, p: RelayMessage) {
debug!("(relay) <- ({sender}) {p:?}");
if let Some(peer) = self.peers.read().await.get(&sender) {
- peer.on_relay(p).await
+ peer.on_relay(p.clone()).await;
+ self.event_handler.on_relay(peer.to_owned(), &p).await;
} else {
warn!("got a packet from a non-existent peer")
}