Rename listemer to server

This commit is contained in:
Thomas Adamcik 2011-07-05 00:56:29 +02:00
parent b311e42840
commit 79e46ab4fa
2 changed files with 2 additions and 2 deletions

View File

@ -29,7 +29,7 @@ class MpdFrontend(ThreadingActor):
port = settings.MPD_SERVER_PORT
try:
network.Listener(hostname, port, MpdSession)
network.Server(hostname, port, protocol=MpdSession)
except IOError, e:
logger.error(u'MPD server startup failed: %s', e)
sys.exit(1)

View File

@ -41,7 +41,7 @@ def format_hostname(hostname):
hostname = '::ffff:%s' % hostname
return hostname
class Listener(object):
class Server(object):
"""Setup listener and register it with gobject loop."""
def __init__(self, host, port, protocol):