Skip to content

Commit

Permalink
Merge pull request #6 from frwickst/basehandler-fixes
Browse files Browse the repository at this point in the history
Add chunk parameter of overloaded finish method
  • Loading branch information
flaviogrossi committed Jun 5, 2014
2 parents a018cc1 + 2737f65 commit 8a3637d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions sockjs/cyclone/basehandler.py
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -32,11 +32,11 @@ def _log_disconnect(self):
self.server.stats.connectionClosed() self.server.stats.connectionClosed()
self.logged = False self.logged = False


def finish(self): def finish(self, chunk=None):
""" Cyclone C{finish} handler """ """ Cyclone C{finish} handler """
self._log_disconnect() self._log_disconnect()


super(BaseHandler, self).finish() super(BaseHandler, self).finish(chunk)


def on_connection_close(self, reason): def on_connection_close(self, reason):
self._log_disconnect() self._log_disconnect()
Expand Down

0 comments on commit 8a3637d

Please sign in to comment.