It unlogs you when you search a server

this one is a bit interesting. so i want to look up a certain server name but as soon as click to join it literally unlogs me with the “connecting” window still on. i then have to restart the game and log back in again. it otherwise works fine only if i dont search anything