Put files in the right place!

This commit is contained in:
Luke Sneeringer
2014-11-21 12:51:17 -06:00
parent 4a6b16bab9
commit 35824f8d67
2 changed files with 1 additions and 141 deletions

View File

@@ -80,7 +80,7 @@ class Socket(object):
if self._context is None:
self._context = zmq.Context()
self._socket = self._context.socket(self._rw)
if purpose == zmq.REQ:
if self._rw == zmq.REQ:
self._socket.connect('tcp://127.0.0.1:%d' % self.port)
else:
self._socket.bind('tcp://127.0.0.1:%d' % self.port)