]> git.ipfire.org Git - thirdparty/tornado.git/commit
Correctly clear and create a new ioloop during autoreload (#2137)
authorJosh Humphries <jrdhumphries@gmail.com>
Sun, 3 Sep 2017 17:48:54 +0000 (18:48 +0100)
committerBen Darnell <ben@bendarnell.com>
Sun, 3 Sep 2017 17:48:54 +0000 (13:48 -0400)
commit395e55872f74f6dfbef225682016e8d72a4de98c
treef2dbfc96801e5ff506390e38f223e884108a10de
parent7cb24cfbe1bf5bf9aeebdbffe856ac5e67c4a7fb
Correctly clear and create a new ioloop during autoreload (#2137)

* Correctly clear and create a new ioloop during autoreload

After the removal of the deprecated io_loop arguments from all functions,
the autoreload module stopped working as the wait function's usage was
missed in the refactor. This resulted in the start function receiving an
IOLoop object as its only argument which it then used as the check_time
argument resulting in errors further down the line when the check_time
is expected to be an int.

* Use the ioloop's add_callback function to start the ioloop on wait

There's no need to stop and clear the loop here, just add start as
a callback and start up the ioloop.
tornado/autoreload.py