Skip to content

Commit

Permalink
Fixes #119 per comments
Browse files Browse the repository at this point in the history
  • Loading branch information
strictlymike committed Nov 15, 2016
1 parent 01f1bf4 commit 48ae49a
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion irc/server.py
Expand Up @@ -184,7 +184,10 @@ def _handle_line(self, line):

def _send(self, msg):
log.debug('to %s: %s', self.client_ident(), msg)
self.request.send(msg.encode('utf-8') + b'\r\n')
try:
self.request.send(msg.encode('utf-8') + b'\r\n')
except socket.error:
raise self.Disconnect()

def handle_nick(self, params):
"""
Expand Down

0 comments on commit 48ae49a

Please sign in to comment.