vibra-pattern: Check for NULL dev
When running e.g. in the theme validator we might not have a vibra dev. Signed-off-by: Guido Günther <agx@sigxcpu.org>
This commit is contained in:
@@ -176,7 +176,8 @@ fbd_feedback_vibra_pattern_end_vibra (FbdFeedbackVibra *vibra)
|
||||
self->pos = 0;
|
||||
g_clear_handle_id (&self->timer_id, g_source_remove);
|
||||
|
||||
fbd_dev_vibra_stop (dev);
|
||||
if (dev)
|
||||
fbd_dev_vibra_stop (dev);
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user