You can't assume client is new, just because server is. I think the code is correct