diff --git a/mopidy/frontends/mpd/__init__.py b/mopidy/frontends/mpd/__init__.py index 4599b31a..65299e9d 100644 --- a/mopidy/frontends/mpd/__init__.py +++ b/mopidy/frontends/mpd/__init__.py @@ -56,7 +56,7 @@ class MpdSession(network.LineProtocol): def on_start(self): self.send_lines([u'OK MPD %s' % protocol.VERSION]) - def on_line_recieved(self, line): + def on_line_received(self, line): self.send_lines(self.dispatcher.handle_request(line)) def close(self): diff --git a/mopidy/utils/network.py b/mopidy/utils/network.py index 69eaac2a..50c7bfab 100644 --- a/mopidy/utils/network.py +++ b/mopidy/utils/network.py @@ -89,7 +89,7 @@ class LineProtocol(ThreadingActor): self.host, self.port = addr[:2] self.recv_buffer = '' - def on_line_recieved(self, line): + def on_line_received(self, line): raise NotImplemented def on_receive(self, message): @@ -102,7 +102,7 @@ class LineProtocol(ThreadingActor): for line in self.parse_lines(message['received']): line = self.decode(line) self.log_request(line) - self.on_line_recieved(line) + self.on_line_received(line) def on_stop(self): try: