From 7f84b6505f3a9874f311b6f262f2a4491b148da4 Mon Sep 17 00:00:00 2001 From: Maciek Borzecki Date: Thu, 15 Jan 2015 20:08:49 +0100 Subject: [PATCH] main: create instance of core --- src/main.vala | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/main.vala b/src/main.vala index a7a9ccf..49ed5c2 100644 --- a/src/main.vala +++ b/src/main.vala @@ -20,6 +20,10 @@ public static int main(string[] args) { + var core = Core.instance(); + if (core == null) + error("cannot initialize core"); + var loop = new MainLoop(); var discovery = new Discovery(); var manager = new DeviceManager();