Skip to content

Commit

Permalink
Run mail checks outside of the UI thread
Browse files Browse the repository at this point in the history
  • Loading branch information
ocdtrekkie committed Aug 22, 2018
1 parent d19f410 commit 99db042
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions modConverse.vb
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,11 @@ Module modConverse
Select Case inputData(1)
Case "mail"
If My.Settings.Mail_IMAPMode = True Then
modMail.CheckMailImap()
Dim MailCheckThread As New Threading.Thread(AddressOf modMail.CheckMailImap)
MailCheckThread.Start()
Else
modMail.CheckMail()
Dim MailCheckThread As New Threading.Thread(AddressOf modMail.CheckMail)
MailCheckThread.Start()
End If
strCommandResponse = "Checking mail"
Case "pihole"
Expand Down

0 comments on commit 99db042

Please sign in to comment.