From bc8bba637e51d1c813c3edcf8747991dc69319e9 Mon Sep 17 00:00:00 2001 From: metamuffin Date: Thu, 13 Oct 2022 09:11:56 +0200 Subject: modify client-web to not sent big messages --- client-native-rift/src/main.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'client-native-rift/src') diff --git a/client-native-rift/src/main.rs b/client-native-rift/src/main.rs index 7176290..72c8396 100644 --- a/client-native-rift/src/main.rs +++ b/client-native-rift/src/main.rs @@ -89,8 +89,9 @@ impl EventHandler for Handler { info: client_native_lib::protocol::ProvideInfo, ) -> DynFut<()> { let id = info.id.clone(); + let args = self.args.clone(); Box::pin(async move { - match self.args.action { + match &args.action { Action::Send { filename } => {} Action::Receive { filename } => { if info.kind == "file" { -- cgit v1.2.3-70-g09d2