Make CALLBACK_CONSUMER_PORT falsy values be dummified.

This commit is contained in:
Luke Sneeringer 2014-11-25 12:02:19 -06:00
parent 27933df220
commit 2b33715b66

View File

@ -85,7 +85,7 @@ class Socket(object):
# If the port is None, then this is an intentional dummy;
# honor this. (For testing.)
if port is None:
if not port:
return
# Okay, create the connection.