修正了一个BUG,当不登录直接离开时子线程会crash

This commit is contained in:
jx 2017-02-06 17:16:05 +08:00
parent 0da096d765
commit d0826dae74

View File

@ -34,7 +34,8 @@ namespace BaiduYunSync
}
else
{
Application.Exit();
//如果不是点击了确认强行退出程序使用Application.Exit()会导致子线程报错
System.Environment.Exit(0);
}
}
var items = LiteDbHelper.GetAllSyncItems();