summaryrefslogtreecommitdiff
path: root/navit/messages.c
diff options
context:
space:
mode:
Diffstat (limited to 'navit/messages.c')
-rw-r--r--navit/messages.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/navit/messages.c b/navit/messages.c
index 141070979..b3d9ddcce 100644
--- a/navit/messages.c
+++ b/navit/messages.c
@@ -144,6 +144,8 @@ struct messagelist
void
messagelist_init(struct messagelist *this_)
{
+ if (!event_system())
+ return;
this_->msg_cleanup_cb = callback_new_1(callback_cast(message_cleanup), this_);
this_->msg_cleanup_to = event_add_timeout(1000, 1, this_->msg_cleanup_cb);
}