about summary refs log tree commit diff stats
path: root/ap_state.h
diff options
context:
space:
mode:
authorStar Rauchenberger <fefferburbia@gmail.com>2023-05-03 15:39:07 -0400
committerStar Rauchenberger <fefferburbia@gmail.com>2023-05-03 15:39:07 -0400
commitf960478d05222fc54f466fc863983fcc3a5eaaeb (patch)
tree96a428bdc8bf047199fc327fc19039ba481b4e7f /ap_state.h
parentf2a4553fa9d64cc39d138531d0a8d662af733ef8 (diff)
downloadlingo-ap-tracker-f960478d05222fc54f466fc863983fcc3a5eaaeb.tar.gz
lingo-ap-tracker-f960478d05222fc54f466fc863983fcc3a5eaaeb.tar.bz2
lingo-ap-tracker-f960478d05222fc54f466fc863983fcc3a5eaaeb.zip
Fixed crash after server disconnects
Diffstat (limited to 'ap_state.h')
-rw-r--r--ap_state.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/ap_state.h b/ap_state.h index 8f27a23..ce7bafc 100644 --- a/ap_state.h +++ b/ap_state.h
@@ -43,11 +43,16 @@ class APState {
43 43
44 int64_t GetItemId(const std::string& item_name); 44 int64_t GetItemId(const std::string& item_name);
45 45
46 void DestroyClient();
47
46 TrackerFrame* tracker_frame_; 48 TrackerFrame* tracker_frame_;
47 49
48 bool client_active_ = false; 50 bool client_active_ = false;
49 std::mutex client_mutex_; 51 std::mutex client_mutex_;
50 52
53 bool connected_ = false;
54 bool has_connection_result_ = false;
55
51 std::set<int64_t> inventory_; 56 std::set<int64_t> inventory_;
52 std::set<int64_t> checked_locations_; 57 std::set<int64_t> checked_locations_;
53 58