aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/session.ml4
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