routing fix
This commit is contained in:
@@ -12,10 +12,6 @@ class Init {
|
||||
public static function initKernel() {
|
||||
// Init singeltons here because haxe is confused about the order to create them.
|
||||
KernelEvents.instance = new KernelEvents();
|
||||
MainLoop.add(() -> {
|
||||
KernelEvents.instance.startEventLoop();
|
||||
},1);
|
||||
|
||||
Peripheral.instance = new Peripheral();
|
||||
|
||||
WindowManager.instance = new WindowManager();
|
||||
@@ -25,8 +21,6 @@ class Init {
|
||||
Routing.instance = new Routing();
|
||||
Net.instance = new Net();
|
||||
|
||||
Routing.instance.init();
|
||||
|
||||
// Register default terminate handler
|
||||
KernelEvents.instance.onTerminate.handle(_->{
|
||||
OS.reboot();
|
||||
@@ -34,7 +28,13 @@ class Init {
|
||||
|
||||
Debug.printBuildInfo();
|
||||
|
||||
|
||||
Log.moveToOutput("main");
|
||||
|
||||
Routing.instance.init();
|
||||
|
||||
MainLoop.add(()->{
|
||||
KernelEvents.instance.startEventLoop();
|
||||
});
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user