how to deal with disconnections

When a player disconnects, the hero does not respawn anymore, the respawn timer gets stuck and the player can no longer join the game when he comes back in.

So my question is, what exactly changes after a disconnect compared to before? If i know that i can probably reason my way to the problem