Skip to content

Commit b58dd68

Browse files
ENikS_cpENikS_cp
authored andcommitted
Fixed threading issue and correct IMAP selection
1 parent 7f7a72a commit b58dd68

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

Samples/CS/ActiveUp.MailSystem.DesktopClient/AccountSetupUI/AddAccountWizardForm.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -221,7 +221,7 @@ private void btnNext_Click(object sender, EventArgs e)
221221
panelScreen2.Visible = false;
222222

223223
DelegateTryConnectAsynch delegateTryConnect = TryConnect;
224-
delegateTryConnect.BeginInvoke(null, null);
224+
this.BeginInvoke((Delegate)delegateTryConnect, null);
225225

226226
panelScreen3.Visible = true;
227227

@@ -268,7 +268,7 @@ public string TryConnect()
268268
Pop3Controller pop3Controller = new Pop3Controller(this._accInfo);
269269
pop3Controller.Disconnect();
270270
}
271-
else if (this._accInfo.MailAccountType == AccountType.POP3)
271+
else if (this._accInfo.MailAccountType == AccountType.IMAP)
272272
{
273273
Imap4Controller imap4Controller = new Imap4Controller(this._accInfo);
274274
imap4Controller.Disconnect();

0 commit comments

Comments
 (0)