@@ -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'],