From 9958c72d5d8f32693ab2318f0f96e100369a2d85 Mon Sep 17 00:00:00 2001 From: Dan Ballard Date: Sun, 11 Dec 2022 15:59:37 -0800 Subject: [PATCH] fix ffi DeactivatePeerEngine call --- lib/cwtch/ffi.dart | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/cwtch/ffi.dart b/lib/cwtch/ffi.dart index ae6867fb..f4a198d5 100644 --- a/lib/cwtch/ffi.dart +++ b/lib/cwtch/ffi.dart @@ -312,7 +312,7 @@ class CwtchFfi implements Cwtch { // ignore: non_constant_identifier_names void DeactivatePeerEngine(String profile) { - var deactivatePeerEngineC = library.lookup>("c_ActivatePeerEngine"); + var deactivatePeerEngineC = library.lookup>("c_DeactivatePeerEngine"); final DeactivatePeerEngine = deactivatePeerEngineC.asFunction(); final ut8profile = profile.toNativeUtf8(); DeactivatePeerEngine(ut8profile, ut8profile.length);