no callback on empty str
parent
d0dc9571d7
commit
7a5db3b2ac
|
|
@ -230,7 +230,9 @@ impl Impl {
|
|||
let result = whispered
|
||||
.after(&(self.stream_head * 100.0))
|
||||
.before(&(self.stream_tail * 100.0));
|
||||
(self.handler_fn.as_mut().unwrap())(Ok(result));
|
||||
if result.to_string().trim().len() > 0 {
|
||||
(self.handler_fn.as_mut().unwrap())(Ok(result));
|
||||
}
|
||||
}
|
||||
|
||||
fn on_error(&mut self, msg: String) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue