main: Don't rescan main loop events if not initialized
commit3ab017b10c64e090a5a3f197315ddcdbc6de698c
authorDavid Goulet <dgoulet@torproject.org>
Fri, 27 Apr 2018 15:14:33 +0000 (27 11:14 -0400)
committerDavid Goulet <dgoulet@torproject.org>
Fri, 27 Apr 2018 15:16:57 +0000 (27 11:16 -0400)
treec601d9bdd87f58caeb5e9ad5fb81d76cf015d910
parent3a47dfed349ee2c05f30ba142d3583772fa2287f
main: Don't rescan main loop events if not initialized

This is done because it makes our life easier with unit tests. Also, a rescan
on an uninitialized event list will result in a stacktrace.

Signed-off-by: David Goulet <dgoulet@torproject.org>
src/or/main.c