diff --git a/src/viced/host.c b/src/viced/host.c index 59ed73e980..3850371a3f 100644 --- a/src/viced/host.c +++ b/src/viced/host.c @@ -2542,7 +2542,8 @@ h_FindClient_r(struct rx_connection *tcon) */ oldClient = (struct client *)rx_GetSpecific(tcon, rxcon_client_key); if (oldClient && oldClient != client && oldClient->sid == rxr_CidOf(tcon) - && oldClient->VenusEpoch == rxr_GetEpoch(tcon)) { + && oldClient->VenusEpoch == rxr_GetEpoch(tcon) + && !(oldClient->host->hostFlags & HOSTDELETED)) { char hoststr[16]; if (!oldClient->deleted) { /* if we didn't create it, it's not ours to put back */