Skip to content

Commit

Permalink
default last to first
Browse files Browse the repository at this point in the history
  • Loading branch information
Rafael H. Schloming committed Feb 7, 2011
1 parent f55333d commit 4265b28
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion session.py
Expand Up @@ -140,7 +140,11 @@ def do_detach(self, detach):
def do_disposition(self, disp):
role = self.roles[not disp.role]
start = max(role.unsettled_lwm, disp.first)
for id in range(start, disp.last+1):
if disp.last is None:
last = start + 1
else:
last = disp.last + 1
for id in range(start, last):
delivery = role.get_delivery(id)
if delivery:
link, tag = delivery
Expand Down

0 comments on commit 4265b28

Please sign in to comment.