check for missing mailsession
This commit is contained in:
@@ -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
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user