eis: don't allow connecting a disconnected client

This commit is contained in:
Peter Hutterer 2023-02-02 13:24:06 +10:00
parent 8bdfc8cf18
commit f9d691e98b

View file

@ -237,6 +237,8 @@ _public_ void
eis_client_connect(struct eis_client *client)
{
switch(client->state) {
case EIS_CLIENT_STATE_DISCONNECTED:
return;
case EIS_CLIENT_STATE_CONNECTING:
break;
default: