Fixed SSE reconnection logic