From 9e7d6f22ab3aa1a52e19308ff2c2ce8e8e9a746e Mon Sep 17 00:00:00 2001 From: Louis-Francis Ratté-Boulianne Date: Sun, 14 Aug 2011 12:28:24 -0400 Subject: bugfix: allow TLP2 chunks to have blob_size == 0 --- papyon/msnp2p/transport/transport_manager.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/papyon/msnp2p/transport/transport_manager.py b/papyon/msnp2p/transport/transport_manager.py index 80b919d..07f3ac3 100644 --- a/papyon/msnp2p/transport/transport_manager.py +++ b/papyon/msnp2p/transport/transport_manager.py @@ -151,7 +151,7 @@ class P2PTransportManager(gobject.GObject): if key in self._blacklist: return - if chunk.size == 0 or chunk.blob_size == 0: + if chunk.size == 0 or (chunk.version == 1 and chunk.blob_size == 0): return if key in self._data_blobs: -- cgit v1.2.3