Merge pull request #5 from matth314/patch-1
Update Blocklayer to better deal with Block1 option
This commit is contained in:
commit
7ce1affe5a
1 changed files with 3 additions and 3 deletions
|
@ -141,10 +141,10 @@ class BlockLayer(object):
|
|||
item.num += 1
|
||||
item.byte += item.size
|
||||
if len(item.payload) <= item.byte:
|
||||
m = 0
|
||||
item.m = 0
|
||||
else:
|
||||
m = 1
|
||||
request.block1 = (item.num, m, item.size)
|
||||
item.m = 1
|
||||
request.block1 = (item.num, item.m, item.size)
|
||||
elif transaction.response.block2 is not None:
|
||||
|
||||
num, m, size = transaction.response.block2
|
||||
|
|
Loading…
Reference in a new issue