Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion simplehttp.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
import json
import loganalyzer as analyze

loop = asyncio.get_event_loop()
loop = asyncio.new_event_loop()
threadPool = futures.ThreadPoolExecutor(thread_name_prefix='loganalyzer: worker thread')
app = web.Application()

Expand Down Expand Up @@ -195,6 +195,7 @@ def main():
logging.info('Exiting application.')
applicationTask.cancel() # Shuts down the HTTP server
threadPool.shutdown() # Shuts down the running thread pool
loop.close() # Close the event loop


if __name__ == '__main__':
Expand Down