summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--tftpy/TftpStates.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tftpy/TftpStates.py b/tftpy/TftpStates.py
index 8dacff0..ac464b9 100644
--- a/tftpy/TftpStates.py
+++ b/tftpy/TftpStates.py
@@ -743,7 +743,7 @@ class TftpStateSentWRQ(TftpState):
if pkt.blocknumber == 0:
log.debug("Ack blocknumber is zero as expected")
log.debug("Sending first DAT packet")
- self.pending_complete = self.context.sendDAT()
+ self.context.pending_complete = self.sendDAT()
log.debug("Changing state to TftpStateExpectACK")
return TftpStateExpectACK(self.context)
else: