From 0557caf9be88d6c2a452a292dde903ec174d8997 Mon Sep 17 00:00:00 2001 From: bunnie Date: Tue, 25 Jan 2022 01:55:49 +0800 Subject: [PATCH] fix livelock problem in app context switching the re-regsitration is a "send" not a "lend" now, because the imef can't block during the context switch. Not sure why I made it a lend in the first place, probably just wasn't thinking... --- services/ime-plugin-api/src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/services/ime-plugin-api/src/lib.rs b/services/ime-plugin-api/src/lib.rs index a6911733e..6f4221ea4 100644 --- a/services/ime-plugin-api/src/lib.rs +++ b/services/ime-plugin-api/src/lib.rs @@ -290,7 +290,7 @@ impl ImeFrontEndApi for ImeFrontEnd { } fn connect_backend(&self, descriptor: ImefDescriptor) -> Result<(), xous::Error> { let buf = Buffer::into_buf(descriptor).or(Err(xous::Error::InternalError))?; - buf.lend(self.cid, ImefOpcode::ConnectBackend.to_u32().unwrap()) + buf.send(self.cid, ImefOpcode::ConnectBackend.to_u32().unwrap()) .or(Err(xous::Error::InternalError)) .map(|_| ()) }