fix: cross-thread function call.

Signed-off-by: liuyanghejerry <liuyanghejerry@126.com>