Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Fix IOError with livereload + custom config file #735
When using livereload with custom config file, after first refresh you got IOError.
Steps to reproduce:
after first refresh you get IOError (end of stream).
That's because closed descriptor was reused by load_config(), but not reinitialized properly, resulting in
@robodude666 makes a good point. That change which prompts the autoreload could be a change to the config file. If a user inadvertently deleted the config file, they should get the same clean error message on a reload as they would get on the initial load. That doesn't happen with the current patch.