forked from Green-Sky/tomato
drasticly increase timer safety margin
This commit is contained in:
@ -193,7 +193,7 @@ bool ToxAvatarSender::onEvent(const ContactStore::Events::Contact4Update& e) {
|
||||
_queue.erase(it);
|
||||
} else if (it->ls != current_state) {
|
||||
// state changed, reset timer
|
||||
it->timer = 21.33f;
|
||||
it->timer = 61.33f;
|
||||
}
|
||||
} else if (e.e.get<Contact::Components::ConnectionState>().state != Contact::Components::ConnectionState::disconnected) {
|
||||
addToQueue(e.e);
|
||||
|
@ -24,7 +24,7 @@ class ToxAvatarSender : public ContactStore4EventI, public RegistryMessageModelE
|
||||
struct Entry {
|
||||
ContactHandle4 c;
|
||||
Contact::Components::ConnectionState::State ls;
|
||||
float timer {23.122f};
|
||||
float timer {62.122f};
|
||||
};
|
||||
std::vector<Entry> _queue;
|
||||
|
||||
|
Reference in New Issue
Block a user