Rename listemer to server
This commit is contained in:
parent
b311e42840
commit
79e46ab4fa
@ -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)
|
||||
|
||||
@ -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):
|
||||
|
||||
Loading…
Reference in New Issue
Block a user