Reset the daemon messenger after a successful Launch().

This commit is contained in:
Axel Dörfler 2012-10-31 00:21:01 +01:00
parent daf972c99c
commit e1e78d4deb

View File

@ -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;
}