diff options
author | Clombrong <cromblong@egregore.fun> | 2025-08-14 22:39:05 +0200 |
---|---|---|
committer | Clombrong <cromblong@egregore.fun> | 2025-08-14 22:39:05 +0200 |
commit | 1283666e6cc07c3149667dfb3218a0dbae62abd6 (patch) | |
tree | 9dffd02c583cfffcf4ca30c743a0f5a41bdc6160 /lib | |
parent | ff7765b631e9b2a6c7c2d1e849e200b1b6c8c949 (diff) |
feat(session): give end-user access to update function
Diffstat (limited to 'lib')
-rw-r--r-- | lib/session.ml | 4 |
1 files changed, 2 insertions, 2 deletions
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 |