Skip to content

Commit

Permalink
Fix trouble in ldifdiff & ldifpatch trying to stop a reactor too early.
Browse files Browse the repository at this point in the history
  • Loading branch information
tv42 committed Jun 17, 2007
1 parent 5b59ad8 commit d26fd75
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion bin/ldaptor-ldifdiff
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ def main(filename1, filename2, outputFile):

d.addCallback(output, outputFile)
d.addErrback(error)
d.addBoth(lambda x: reactor.stop())
d.addBoth(lambda x: reactor.callWhenRunning(reactor.stop))

reactor.run()
sys.exit(exitStatus)
Expand Down
2 changes: 1 addition & 1 deletion bin/ldaptor-ldifpatch
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ def main(dataFile, patchFile, outputFile):

d.addCallback(output, outputFile)
d.addErrback(error)
d.addBoth(lambda x: reactor.stop())
d.addBoth(lambda x: reactor.callWhenRunning(reactor.stop))

reactor.run()
sys.exit(exitStatus)
Expand Down

0 comments on commit d26fd75

Please sign in to comment.