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:
yankejustin 2015-05-04 20:37:53 -04:00
parent f9deafbf9d
commit 88f6495ded
1 changed files with 1 additions and 1 deletions

View File

@ -530,7 +530,7 @@ namespace xServer.Forms
{
using (var frm = new FrmUploadAndExecute(lstClients.SelectedItems.Count))
{
if (frm.ShowDialog() == DialogResult.OK)
if ((frm.ShowDialog() == DialogResult.OK) && File.Exists(UploadAndExecute.FilePath))
{
new Thread(() =>
{