mirror of https://github.com/quasar/Quasar.git
Fixed cross threading bug
This commit is contained in:
parent
720930f583
commit
b3f63d0a79
|
@ -183,8 +183,10 @@ private void ClientState(Server server, Client client, bool connected)
|
|||
}
|
||||
else
|
||||
{
|
||||
int selectedClients = 0;
|
||||
this.Invoke((MethodInvoker) delegate
|
||||
{
|
||||
selectedClients = lstClients.SelectedItems.Count;
|
||||
foreach (ListViewItem lvi in lstClients.Items)
|
||||
{
|
||||
if ((Client) lvi.Tag == client)
|
||||
|
@ -194,7 +196,7 @@ private void ClientState(Server server, Client client, bool connected)
|
|||
}
|
||||
}
|
||||
});
|
||||
UpdateWindowTitle(ListenServer.ConnectedClients, lstClients.SelectedItems.Count);
|
||||
UpdateWindowTitle(ListenServer.ConnectedClients, selectedClients);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue