bgp: Fixed error in bgp implementation with single peer

When a single peer is specified for BGPSpeaker the server value was not
being set upon return.

Signed-off-by: Alan Quillin <alanquillin@gmail.com>
Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
This commit is contained in:
Alan Quillin 2015-02-05 12:02:32 -06:00 committed by FUJITA Tomonori
parent 79774a3fe9
commit 973d43f6fb

@ -384,8 +384,8 @@ class Activity(object):
count += 1
else:
self._spawn(name, self._listen_socket_loop,
listen_sockets[sa], conn_handle)
server = self._spawn(name, self._listen_socket_loop,
listen_sockets[sa], conn_handle)
return server, listen_sockets
def _connect_tcp(self, peer_addr, conn_handler, time_out=None,