This commit is contained in:
Julian Ospald 2017-07-02 01:45:30 +02:00
parent e28faaa2ed
commit f06f3dbb33
No known key found for this signature in database
GPG Key ID: 511B62C09D50CD28
1 changed files with 2 additions and 2 deletions

View File

@ -31,7 +31,7 @@ pub enum AudioSignal {
pub struct Audio {
_cannot_construct: (),
pub acard: RefCell<Box<AlsaCard>>,
pub last_action_timestamp: RefCell<i64>,
pub last_action_timestamp: Rc<RefCell<i64>>,
pub handlers: Rc<RefCell<Vec<Box<Fn(AudioSignal, AudioUser)>>>>,
pub scroll_step: Cell<u32>,
}
@ -43,7 +43,7 @@ impl Audio {
-> Result<Audio> {
let handlers = Rc::new(RefCell::new(vec![]));
let last_action_timestamp = RefCell::new(0);
let last_action_timestamp = Rc::new(RefCell::new(0));
let myhandler = handlers.clone();
let ts = last_action_timestamp.clone();