Skip to content

Commit f357f97

Browse files
committed
Allow Tls11 and abort modder thread when quitting
1 parent 13c8934 commit f357f97

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

src/MainForm.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -564,8 +564,8 @@ private void MinimizeButton_Click(object sender, EventArgs e) {
564564
}
565565

566566
private void CloseButton_Click(object sender, EventArgs e) {
567-
if (Status == InstallerStatus.Progress)
568-
return;
567+
if (_ModderThread != null && _ModderThread.IsAlive)
568+
_ModderThread.Abort();
569569
Close();
570570
}
571571

src/Program.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ static class Program {
1515
/// </summary>
1616
[STAThread]
1717
static void Main(string[] args) {
18-
ServicePointManager.SecurityProtocol = SecurityProtocolType.Tls12;
18+
ServicePointManager.SecurityProtocol = SecurityProtocolType.Tls11 | SecurityProtocolType.Tls12;
1919

2020
const string logDefaultName = "installer-log.txt";
2121
string log = Path.GetFullPath(logDefaultName);

0 commit comments

Comments
 (0)