Show More
@@ -250,7 +250,6 b' class sshserver(abstractserverproto):' | |||||
250 | def __init__(self, ui, repo): |
|
250 | def __init__(self, ui, repo): | |
251 | self.ui = ui |
|
251 | self.ui = ui | |
252 | self.repo = repo |
|
252 | self.repo = repo | |
253 | self.lock = None |
|
|||
254 | self.fin = ui.fin |
|
253 | self.fin = ui.fin | |
255 | self.fout = ui.fout |
|
254 | self.fout = ui.fout | |
256 | self.name = 'ssh' |
|
255 | self.name = 'ssh' | |
@@ -321,12 +320,8 b' class sshserver(abstractserverproto):' | |||||
321 | self.fout.flush() |
|
320 | self.fout.flush() | |
322 |
|
321 | |||
323 | def serve_forever(self): |
|
322 | def serve_forever(self): | |
324 | try: |
|
|||
325 |
|
|
323 | while self.serve_one(): | |
326 |
|
|
324 | pass | |
327 | finally: |
|
|||
328 | if self.lock is not None: |
|
|||
329 | self.lock.release() |
|
|||
330 | sys.exit(0) |
|
325 | sys.exit(0) | |
331 |
|
326 | |||
332 | handlers = { |
|
327 | handlers = { |
General Comments 0
You need to be logged in to leave comments.
Login now