From e1e78d4debcf718826f5f726cb9fc17ebeca2542 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Axel=20D=C3=B6rfler?= Date: Wed, 31 Oct 2012 00:21:01 +0100 Subject: [PATCH] Reset the daemon messenger after a successful Launch(). --- src/kits/mail/MailDaemon.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/kits/mail/MailDaemon.cpp b/src/kits/mail/MailDaemon.cpp index 21722feb26..a1778c0ff8 100644 --- a/src/kits/mail/MailDaemon.cpp +++ b/src/kits/mail/MailDaemon.cpp @@ -135,5 +135,9 @@ BMailDaemon::Quit() status_t BMailDaemon::Launch() { - return be_roster->Launch(B_MAIL_DAEMON_SIGNATURE); + status_t status = be_roster->Launch(B_MAIL_DAEMON_SIGNATURE); + if (status == B_OK) + fDaemon = BMessenger(B_MAIL_DAEMON_SIGNATURE); + + return status; }