~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/smart/medium.py

  • Committer: Vincent Ladeuil
  • Date: 2011-09-27 11:48:50 UTC
  • mto: This revision was merged to the branch mainline in revision 6173.
  • Revision ID: v.ladeuil+lp@free.fr-20110927114850-338r2mns0138klv0
Global options respect their hidden attribute

Show diffs side-by-side

added added

removed removed

Lines of Context:
230
230
        try:
231
231
            while not self.finished:
232
232
                server_protocol = self._build_protocol()
 
233
                # TODO: This seems inelegant:
 
234
                if server_protocol is None:
 
235
                    # We could 'continue' only to notice that self.finished is
 
236
                    # True...
 
237
                    break
233
238
                self._serve_one_request(server_protocol)
234
239
        except errors.ConnectionTimeout, e:
235
240
            trace.note('%s' % (e,))
321
326
 
322
327
        :param protocol: a SmartServerRequestProtocol.
323
328
        """
324
 
        if protocol is None:
325
 
            return
326
329
        try:
327
330
            self._serve_one_request_unguarded(protocol)
328
331
        except KeyboardInterrupt: