diff options
author | Koni Marti <koni.marti@gmail.com> | 2022-01-19 13:18:10 +0100 |
---|---|---|
committer | Robin Jarry <robin@jarry.cc> | 2022-01-19 17:40:52 +0100 |
commit | beae17a6da37402d1c69dc76b476f55cbae982b8 (patch) | |
tree | 94309a87346dc320627a032bfce73f58bcc77412 /worker/types | |
parent | 1ace50a6b927fde7ef3205001a7acd91e04ac2d7 (diff) | |
download | aerc-beae17a6da37402d1c69dc76b476f55cbae982b8.zip |
imap: auto-reconnects on connection error
if the worker emits a connection error, the ui will automatically send back a
reconnect command. The worker then establishes a new connection. Auto-reconnect
is disabled when the user sends the disconnect command.
Fixes: https://todo.sr.ht/~rjarry/aerc/1
Signed-off-by: Koni Marti <koni.marti@gmail.com>
Diffstat (limited to 'worker/types')
-rw-r--r-- | worker/types/messages.go | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/worker/types/messages.go b/worker/types/messages.go index a5eae8d..d8f1f56 100644 --- a/worker/types/messages.go +++ b/worker/types/messages.go @@ -68,6 +68,10 @@ type Connect struct { Message } +type Reconnect struct { + Message +} + type Disconnect struct { Message } |