mirror of https://github.com/quasar/Quasar.git
Fixed null reference crash
Closing this form without doing anything causes a crash because RefreshTimer hasn't been initialized yet
This commit is contained in:
parent
4fcdf3b4d4
commit
8f208fe05d
|
@ -103,7 +103,8 @@ private string GetSizeStr(long size)
|
|||
|
||||
private void btnStop_Click(object sender, EventArgs e)
|
||||
{
|
||||
RefreshTimer.Stop();
|
||||
if (RefreshTimer != null)
|
||||
RefreshTimer.Stop();
|
||||
btnStart.Enabled = true;
|
||||
btnStop.Enabled = false;
|
||||
if (SocksServer != null)
|
||||
|
@ -181,4 +182,4 @@ private void killConnectionToolStripMenuItem_Click(object sender, EventArgs e)
|
|||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue