Browse Source

why did i make accessors?

tarfeef101 6 years ago
parent
commit
b1a0870d8b
1 changed files with 1 additions and 1 deletions
  1. 1 1
      a3/router.py

+ 1 - 1
a3/router.py

@@ -27,7 +27,7 @@ pack, addr = sock.recvfrom(4096)
 circuit = unpacket(pack)[1]
 circuit = unpacket(pack)[1]
 
 
 # send shit out to emulator
 # send shit out to emulator
-for i in circuit.getlinks():
+for i in circuit.getlink():
     sock.sendto(hpacket(rid, i.getlid()).package(), (haddr, hport))
     sock.sendto(hpacket(rid, i.getlid()).package(), (haddr, hport))
 
 
 # stores neighbours, topology db, and graph
 # stores neighbours, topology db, and graph