mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-10 21:23:58 +01:00
Avoid infinite stack explosion in windows monotime.
[init calls get calls init calls get calls init.... ]
This commit is contained in:
parent
1d0775684d
commit
9c210d0e81
@ -536,12 +536,12 @@ void
|
||||
monotime_init(void)
|
||||
{
|
||||
if (!monotime_initialized) {
|
||||
monotime_initialized = 1;
|
||||
monotime_init_internal();
|
||||
monotime_get(&initialized_at);
|
||||
#ifdef MONOTIME_COARSE_FN_IS_DIFFERENT
|
||||
monotime_coarse_get(&initialized_at_coarse);
|
||||
#endif
|
||||
monotime_initialized = 1;
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user