ddnet/src
bors[bot] 8375fd83a0
Merge #6540
6540: Fix inconsistent client state after disconnecting with network error r=def- a=Robyt3

The `Disconnect` function did not fully clear all server data, because the client state was already set to offline manually before the function is called. This was causing inconsistent behavior when connecting to another server after being disconnected. For example, the client could get stuck at "getting game info" when connecting the next time.

## Checklist

- [X] Tested the change ingame
- [ ] Provided screenshots if it is a visual change
- [ ] Tested in combination with possibly related configuration options
- [ ] Written a unit test (especially base/) or added coverage to integration test
- [ ] Considered possible null pointers and out of bounds array indexing
- [ ] Changed no physics that affect existing maps
- [ ] Tested the change with [ASan+UBSan or valgrind's memcheck](https://github.com/ddnet/ddnet/#using-addresssanitizer--undefinedbehavioursanitizer-or-valgrinds-memcheck) (optional)


Co-authored-by: Robert Müller <robytemueller@gmail.com>
2023-04-28 16:25:23 +00:00
..
android Add tests for overloaded hash operators, use operator instead 2022-11-12 20:36:38 +01:00
antibot Hand the client IP addresses to the antibot module 2023-01-11 01:35:50 +01:00
base Port line input and IME support from 0.7 2023-04-23 15:00:29 +02:00
engine Fix inconsistent client state after disconnecting with network error 2023-04-28 17:57:58 +02:00
game Fix Ctrl+F not activating search box in browser and tee settings 2023-04-28 17:17:30 +02:00
macos Huge variable naming format 2022-07-08 18:01:29 +02:00
masterping Add tool to manually ping the mastersrv 2022-12-29 12:50:24 +01:00
mastersrv Apache RequestHeader needs the headers module 2023-04-01 16:35:09 +02:00
rust-bridge Fix being run from rust-analyzer with a clean environment 2022-11-09 15:09:42 +01:00
steam Replace all usages of C standard headers with C++ headers 2023-03-01 19:26:51 +01:00
test Merge #6530 2023-04-25 15:47:07 +00:00
tools Show twping timeout if no ping response is received, add exit code 2023-03-23 23:26:07 +01:00