mirror of https://github.com/quasar/Quasar.git
Fixed server crash on invalid upload/execute
Fixed an issue that caused the server to crash when attempting to upload then execute on a file on a client when no file was selected.
This commit is contained in:
parent
f9deafbf9d
commit
88f6495ded
|
@ -530,7 +530,7 @@ private void ctxtLocalFile_Click(object sender, EventArgs e)
|
||||||
{
|
{
|
||||||
using (var frm = new FrmUploadAndExecute(lstClients.SelectedItems.Count))
|
using (var frm = new FrmUploadAndExecute(lstClients.SelectedItems.Count))
|
||||||
{
|
{
|
||||||
if (frm.ShowDialog() == DialogResult.OK)
|
if ((frm.ShowDialog() == DialogResult.OK) && File.Exists(UploadAndExecute.FilePath))
|
||||||
{
|
{
|
||||||
new Thread(() =>
|
new Thread(() =>
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue