diff options
author | Hubert Chathi <hubert@uhoreg.ca> | 2020-08-21 19:14:00 -0400 |
---|---|---|
committer | Hubert Chathi <hubert@uhoreg.ca> | 2020-08-21 19:14:00 -0400 |
commit | 7a9741e3f6fd64ae492697560f61cad7ef9e0cb4 (patch) | |
tree | 63a1614529615b806224abf453a9b974aadd7bf7 /lib/polyjuice/client/sync.ex | |
parent | automatically start sync process (diff) |
automatically start/stop sync when logging in/out
Diffstat (limited to '')
-rw-r--r-- | lib/polyjuice/client/sync.ex | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/polyjuice/client/sync.ex b/lib/polyjuice/client/sync.ex index 1f6e95b..f6651e3 100644 --- a/lib/polyjuice/client/sync.ex +++ b/lib/polyjuice/client/sync.ex @@ -87,6 +87,8 @@ defmodule Polyjuice.Client.Sync do uri = URI.merge(homeserver_url, @sync_path) + Registry.register(Polyjuice.Client, {id, :sync}, nil) + connect(%__MODULE__{ handler: handler, client_state: Polyjuice.Client.process_name(id, :state), |