aboutsummaryrefslogtreecommitdiff
path: root/bbot/tftp.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'bbot/tftp.cxx')
-rw-r--r--bbot/tftp.cxx5
1 files changed, 3 insertions, 2 deletions
diff --git a/bbot/tftp.cxx b/bbot/tftp.cxx
index 9c783c5..27d58a4 100644
--- a/bbot/tftp.cxx
+++ b/bbot/tftp.cxx
@@ -92,12 +92,13 @@ namespace bbot
throw_system_error (errno);
}
else if (r == 0) // Timeout.
+ {
+ sec = 0;
return false;
+ }
if (FD_ISSET (fd, &rd))
{
- text << "connection";
-
// The inetd "protocol" is to pass the socket as stdin/stdout file
// descriptors.
//