aboutsummaryrefslogtreecommitdiffstats
path: root/src/client
diff options
context:
space:
mode:
authorKunal Mohan <kunalmohan99@gmail.com>2021-04-15 14:57:09 +0530
committerKunal Mohan <kunalmohan99@gmail.com>2021-05-04 20:48:15 +0530
commit246899a1ddb0a517846be57d04aaa7b5283710f9 (patch)
treec4d6a2d848ebbaf3fed26e3e68d0f4482292c973 /src/client
parentFix after rebase (diff)
downloadsl0ppij-246899a1ddb0a517846be57d04aaa7b5283710f9.tar.gz
sl0ppij-246899a1ddb0a517846be57d04aaa7b5283710f9.tar.xz
sl0ppij-246899a1ddb0a517846be57d04aaa7b5283710f9.zip
Remove ErrorContext from IpcSender and nit fixes
Diffstat (limited to 'src/client')
-rw-r--r--src/client/mod.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/client/mod.rs b/src/client/mod.rs
index 6ba6df73..7dc38f5e 100644
--- a/src/client/mod.rs
+++ b/src/client/mod.rs
@@ -107,7 +107,8 @@ pub fn start_client(mut os_input: Box<dyn ClientOsApi>, opts: CliArgs) {
let os_input = os_input.clone();
move || {
loop {
- let (instruction, _err_ctx) = os_input.client_recv();
+ let (instruction, mut err_ctx) = os_input.client_recv();
+ err_ctx.add_call(ContextType::Client(ClientContext::from(&instruction)));
if let ClientInstruction::Exit = instruction {
break;
}
@@ -129,7 +130,6 @@ pub fn start_client(mut os_input: Box<dyn ClientOsApi>, opts: CliArgs) {
err_ctx.add_call(ContextType::Client(ClientContext::from(
&client_instruction,
)));
- os_input.update_senders(err_ctx);
match client_instruction {
ClientInstruction::Exit => break,
ClientInstruction::Error(backtrace) => {