Skip to content
Snippets Groups Projects
Commit 02e407d9 authored by Jarrod Pas's avatar Jarrod Pas
Browse files

Add source back to Node.recv

parent 67620e8c
No related branches found
No related tags found
2 merge requests!3Version 0.2,!2Document examples
......@@ -423,12 +423,13 @@ class Node:
"""Call when a packet expires."""
self.buffer.remove(packet)
def recv(self, packet):
def recv(self, packet, source=None):
"""
Recieve a packet.
If the packet has reached it's destination notes the time then
"""
# pylint: disable=unused-argument
if packet.destination is self:
return
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment