You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
We use timers to decide when to query and delete expired messages or when to perform signed key rotations. Internally, timers are counters that get updated when the CPU ticks, so if the CPU sleeps, the timer will stop counting, and start again after it wakes up, ignoring the intervening passage of wall clock time. To fix this, without having to query the database or other potentially high overhead operations too often, use an interval to frequently check the wall clock time. If time jumps forward, trigger a global event so other listeners can update their possibly-inaccurate timers. https://stackoverflow.com/questions/6346849/what-happens-to-settimeout-when-the-computer-goes-to-sleep https://stackoverflow.com/questions/4079115/can-any-desktop-browsers-detect-when-the-computer-resumes-from-sleep // FREEBIE |
8 years ago | |
---|---|---|
.. | ||
models | 8 years ago | |
views | 8 years ago | |
Mp3LameEncoder.min.js | 9 years ago | |
WebAudioRecorderMp3.js | 9 years ago | |
background.js | 8 years ago | |
chromium.js | 8 years ago | |
components.js | 9 years ago | |
conversation_controller.js | 9 years ago | |
conversation_panel.js | 10 years ago | |
database.js | 8 years ago | |
debugLog.js | 9 years ago | |
delivery_receipts.js | 8 years ago | |
emoji_util.js | 9 years ago | |
expire.js | 9 years ago | |
expiring_messages.js | 8 years ago | |
index.js | 9 years ago | |
libphonenumber-util.js | 10 years ago | |
libsignal-protocol-worker.js | 9 years ago | |
libtextsecure.js | 8 years ago | |
notifications.js | 8 years ago | |
options.js | 9 years ago | |
panel_controller.js | 9 years ago | |
read_receipts.js | 9 years ago | |
register.js | 9 years ago | |
registration.js | 9 years ago | |
rotate_signed_prekey_listener.js | 8 years ago | |
signal_protocol_store.js | 8 years ago | |
storage.js | 9 years ago | |
wall_clock_listener.js | 8 years ago |