no callback on empty str
This commit is contained in:
@@ -230,7 +230,9 @@ impl Impl {
|
|||||||
let result = whispered
|
let result = whispered
|
||||||
.after(&(self.stream_head * 100.0))
|
.after(&(self.stream_head * 100.0))
|
||||||
.before(&(self.stream_tail * 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) {
|
fn on_error(&mut self, msg: String) {
|
||||||
|
|||||||
Reference in New Issue
Block a user