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);
|
_queue.erase(it);
|
||||||
} else if (it->ls != current_state) {
|
} else if (it->ls != current_state) {
|
||||||
// state changed, reset timer
|
// 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) {
|
} else if (e.e.get<Contact::Components::ConnectionState>().state != Contact::Components::ConnectionState::disconnected) {
|
||||||
addToQueue(e.e);
|
addToQueue(e.e);
|
||||||
|
@ -24,7 +24,7 @@ class ToxAvatarSender : public ContactStore4EventI, public RegistryMessageModelE
|
|||||||
struct Entry {
|
struct Entry {
|
||||||
ContactHandle4 c;
|
ContactHandle4 c;
|
||||||
Contact::Components::ConnectionState::State ls;
|
Contact::Components::ConnectionState::State ls;
|
||||||
float timer {23.122f};
|
float timer {62.122f};
|
||||||
};
|
};
|
||||||
std::vector<Entry> _queue;
|
std::vector<Entry> _queue;
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user