Commit 76b49175 authored by 神楽坂玲奈's avatar 神楽坂玲奈

fix

parent 7e0270a2
......@@ -59,6 +59,8 @@ const socket = dgram
// 变更
if (from.via.get(to) !== best_route) {
console.log(from, to, best_route);
from.via.set(to, best_route);
updating = setInterval(() => send_route(from, to, best_route), config.interval);
send_route(from, to, best_route);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment