From bbdbef889aa35312dc622c1aed06841d0d6deeaa Mon Sep 17 00:00:00 2001 From: Djeeberjr Date: Tue, 1 Mar 2022 13:20:23 +0100 Subject: [PATCH] i hate everything --- Makefile | 2 +- src/kernel/net/Routing.hx | 6 +----- 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/Makefile b/Makefile index 1773d61..1b52090 100644 --- a/Makefile +++ b/Makefile @@ -2,7 +2,7 @@ BUNDLE_NAME = bundle.lua HAXE_NAME = haxe.lua MINIFYD_NAME = bundle.min.lua BUILD_DIR = build -HAXE_FLAGS = -D webconsole --debug +HAXE_FLAGS = POLYFILLED_NAME = bundle.polyfill.lua POLYFILL_SRC = src/polyfill.lua diff --git a/src/kernel/net/Routing.hx b/src/kernel/net/Routing.hx index fca7f65..6477fc5 100644 --- a/src/kernel/net/Routing.hx +++ b/src/kernel/net/Routing.hx @@ -74,11 +74,7 @@ class Routing { data: null } - // HACK: Because Lua is singelthreaded the computer we respond to can get overwhelmed with - // the responses and can swollow events. - new Timer(Net.instance.networkID / 3,()->{ - interf.send(response.toID,Net.instance.networkID,response); - }); + interf.send(response.toID,Net.instance.networkID,response); } private function genRouteList(): Array<{id:NetworkID,cost:Int}> {