on master help sign in
fix gevent's monkey patch position
commitcbdc1e1e76835270cb1d67b99b4caa385000498d authorMartin Zimmermann <info@posativ.org> dateThu 3 Jul 2014, 22:05 (12 years ago) parent2f4c229
1 file changed+3−3
searx/webapp.py+3−3
searx/webapp.py+3−3
@@ -17,6 +17,9 @@ along with searx. If not, see < http://www.gnu.org/licenses/ >.
1717(C) 2013- by Adam Tauber, <asciimoo@gmail.com>
1818'''
1919
20+from gevent import monkey; monkey.patch_all()
21+
22+
2023if __name__ == '__main__':
2124 from sys import path
2225 from os.path import realpath, dirname
@@ -473,9 +476,6 @@ def favicon():
473476
474477
475478def run():
476− from gevent import monkey
477− monkey.patch_all()
478−
479479 app.run(
480480 debug=settings['server']['debug'],
481481 use_debugger=settings['server']['debug'],