server: ignore SPICE_MSGC_MAIN_AGENT_START messages when there is no agent

This can happen for example when a SPICE_MSGC_MAIN_AGENT_START message
from the client and the vdagent disconnecting race.
This commit is contained in:
Hans de Goede 2011-04-01 16:45:50 +02:00
parent e472bc7d5a
commit 00a03b7633

View File

@ -1013,6 +1013,9 @@ void reds_fill_channels(SpiceMsgChannels *channels_info)
void reds_on_main_agent_start()
{
if (!vdagent) {
return;
}
reds->agent_state.write_filter.discard_all = FALSE;
}