[geary/wip/replay-queue-wedging: 2/5] Make Imap.CientSession::enable_idle non-async
- From: Michael Gratton <mjog src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [geary/wip/replay-queue-wedging: 2/5] Make Imap.CientSession::enable_idle non-async
- Date: Fri, 9 Aug 2019 23:00:33 +0000 (UTC)
commit 31497cff869692b4dd2cdc1d439b3bd0c3eb1c77
Author: Michael Gratton <mike vee net>
Date: Sat Aug 10 08:37:31 2019 +1000
Make Imap.CientSession::enable_idle non-async
It doesn't actually do any async calls, so simplify.
src/engine/imap/api/imap-folder-session.vala | 2 +-
src/engine/imap/transport/imap-client-session.vala | 4 ++--
2 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/src/engine/imap/api/imap-folder-session.vala b/src/engine/imap/api/imap-folder-session.vala
index 593e27cd..0dc1db0e 100644
--- a/src/engine/imap/api/imap-folder-session.vala
+++ b/src/engine/imap/api/imap-folder-session.vala
@@ -135,7 +135,7 @@ private class Geary.Imap.FolderSession : Geary.Imap.SessionObject {
int token = yield this.cmd_mutex.claim_async(cancellable);
Error? cmd_err = null;
try {
- yield session.enable_idle(cancellable);
+ session.enable_idle();
} catch (Error err) {
cmd_err = err;
}
diff --git a/src/engine/imap/transport/imap-client-session.vala
b/src/engine/imap/transport/imap-client-session.vala
index 162f5114..61ecd397 100644
--- a/src/engine/imap/transport/imap-client-session.vala
+++ b/src/engine/imap/transport/imap-client-session.vala
@@ -1156,8 +1156,8 @@ public class Geary.Imap.ClientSession : BaseObject {
* CAPABILITY server data response with IDLE listed as a supported
* extension.
*/
- public async void enable_idle(Cancellable? cancellable)
- throws Error {
+ public void enable_idle()
+ throws GLib.Error {
if (this.is_idle_supported) {
switch (get_protocol_state(null)) {
case ProtocolState.AUTHORIZING:
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]