Master Support Partially Working

This commit is contained in:
Cort Buffington 2014-05-14 19:44:26 -05:00
parent 77e446c1f1
commit f915131a23

View File

@ -1076,8 +1076,8 @@ class IPSC(DatagramProtocol):
'KEEP_ALIVES_OUTSTANDING': 0 'KEEP_ALIVES_OUTSTANDING': 0
} }
} }
self._local['NUM_PEERS'] = len(self.peers) self._local['NUM_PEERS'] = len(self._peers)
logger.debug('(%s) Peer Added To Peer List: %s (IPSC now has %s Peers)', _network, self._peers[_peerid], self._local['NUM_PEERS']) logger.debug('(%s) Peer Added To Peer List: %s (IPSC now has %s Peers)', self._network, self._peers[_peerid], self._local['NUM_PEERS'])
return return
# REQUEST FOR A KEEP-ALIVE REPLY (WE KNOW THE PEER IS STILL ALIVE TOO) # REQUEST FOR A KEEP-ALIVE REPLY (WE KNOW THE PEER IS STILL ALIVE TOO)
@ -1090,7 +1090,7 @@ class IPSC(DatagramProtocol):
# REQUEST FOR A PEER LIST # REQUEST FOR A PEER LIST
elif _packettype == PEER_LIST_REQ: elif _packettype == PEER_LIST_REQ:
logger.debug('(%s) Peer List Received from peer %s', self._network, int_id(_peerid)) logger.debug('(%s) Peer List Request from peer %s', self._network, int_id(_peerid))
return return