summaryrefslogtreecommitdiff
path: root/src/leap/services
diff options
context:
space:
mode:
Diffstat (limited to 'src/leap/services')
-rw-r--r--src/leap/services/mail/imap.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/leap/services/mail/imap.py b/src/leap/services/mail/imap.py
index 65fbe3b5..5fdc7492 100644
--- a/src/leap/services/mail/imap.py
+++ b/src/leap/services/mail/imap.py
@@ -29,6 +29,8 @@ logger = logging.getLogger(__name__)
def start_imap_service(*args, **kwargs):
"""
Initializes and run imap service.
+
+ :returns: twisted.internet.task.LoopingCall instance
"""
logger.debug('Launching imap service')
@@ -36,4 +38,4 @@ def start_imap_service(*args, **kwargs):
log.startLogging(open('/tmp/leap-imap.log', 'w'))
log.startLogging(sys.stdout)
- imap.run_service(*args, **kwargs)
+ return imap.run_service(*args, **kwargs)