Close down TF2, wait a bit, then rejoin - normally about 20 minutes is definitely safe. I've had it a couple of times before, especially when my connection blipped midway through the joining of a server.