#! /bin/sh /usr/share/dpatch/dpatch-run ## 17_fix_NatCheck_bufferlen_error.dpatch by ## ## All lines beginning with `## DP:' are a description of the patch. ## DP: Fix a syntax error, see http://forums.degreez.net/viewtopic.php?p=28164 @DPATCH@ --- bittornado.orig/BitTornado/BT1/NatCheck.py +++ bittornado/BitTornado/BT1/NatCheck.py @@ -206,9 +206,6 @@ self.next_len, self.next_func = x if self.next_len < 0: # already checked buffer return # wait for additional data - if self.bufferlen is not None: - self._read2('') - return def connection_lost(self, connection): if not self.closed: