After RpcClientwas refactored to async_trait usage in #135, RpcClient::on_normal_close starts require one more reference to the RpcClient. Because of it, RpcClient remains alive after Room close.
Solution
Return LocalBoxFuture from the RpcClient::on_normal_close instead of async fn usage
Part of #27
Synopsis
After
RpcClient
was refactored toasync_trait
usage in #135,RpcClient::on_normal_close
starts require one more reference to theRpcClient
. Because of it,RpcClient
remains alive afterRoom
close.Solution
Return
LocalBoxFuture
from theRpcClient::on_normal_close
instead ofasync fn
usageAdd unit tests for this bug
Checklist
Draft:
prefixk::
labels appliedDraft:
prefix is removed