check for missing mailsession

This commit is contained in:
Jonathan Jenne
2023-10-11 15:35:04 +02:00
parent a64823ae5e
commit 7b01ef788a

View File

@@ -9,7 +9,11 @@ Namespace Mail
Public ReadOnly Property Connected2Server As Boolean Public ReadOnly Property Connected2Server As Boolean
Get Get
Return MailSession.Session.Connected If MailSession IsNot Nothing AndAlso MailSession.Session IsNot Nothing Then
Return MailSession.Session.Connected
Else
Return False
End If
End Get End Get
End Property End Property