From 1283666e6cc07c3149667dfb3218a0dbae62abd6 Mon Sep 17 00:00:00 2001 From: Clombrong Date: Thu, 14 Aug 2025 22:39:05 +0200 Subject: feat(session): give end-user access to update function --- lib/session.ml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib') diff --git a/lib/session.ml b/lib/session.ml index 2b399d9..d0c2754 100644 --- a/lib/session.ml +++ b/lib/session.ml @@ -22,7 +22,7 @@ type state = Basically, it conforms to {{: https://datatracker.ietf.org/doc/html/rfc6120#section-4.3 }}, and gets the Portal in a "ready" state. *) -let create (domain : string) (config : config) : (state signal * (unit -> unit)) Lwt.t = +let create (domain : string) (config : config) = let needs_restart = function | Feature.Mechanisms _ | STARTTLS -> true | _ -> false @@ -53,4 +53,4 @@ let create (domain : string) (config : config) : (state signal * (unit -> unit)) in update (Connected (portal, next_state)) | _ -> Lwt.return_unit) state >|= S.keep; - in state, fun () -> update (Connecting domain) + in state, update -- cgit v1.2.3