~sil/desktopcouch/create-oauth-tokens-startup

« back to all changes in this revision

Viewing changes to desktopcouch/pair/couchdb_pairing/network_io.py

  • Committer: Elliot Murphy
  • Date: 2009-07-28 03:43:02 UTC
  • Revision ID: elliot@canonical.com-20090728034302-q7ym1mgn7k6s75ha
Fix some test failures seen from trial desktopcouch/

Show diffs side-by-side

added added

removed removed

Lines of Context:
79
79
        """Called when a connection is made.  No obligation here."""
80
80
        basic.LineReceiver.connectionMade(self)
81
81
 
82
 
    def connectionLost(self):
 
82
    def connectionLost(self, reason):
83
83
        """Called when a connection is lost."""
84
84
        self.logging.debug("connection lost")
85
 
        basic.LineReceiver.connectionLost(self)
 
85
        basic.LineReceiver.connectionLost(self, reason)
86
86
 
87
87
    def lineReceived(self, message):
88
88
        """Handler for receipt of a message from the Bob end."""
175
175
            self.logging.warn("Expected %r from invitation.",
176
176
                    self.expected_hash_of_secret)
177
177
 
178
 
    def connectionLost(self):
 
178
    def connectionLost(self, reason):
179
179
        """When a connected socked is broken, this is fired."""
180
180
        self.logging.info("connection lost.")
181
 
        basic.LineReceiver.connectionLost(self)
 
181
        basic.LineReceiver.connectionLost(self, reason)
182
182
 
183
183
 
184
184
class SendInvitationFactory(ReconnectingClientFactory):