From 83dd3c74d6484286b63865049646dad1afcbba3f Mon Sep 17 00:00:00 2001 From: "Unknown W. Brackets" Date: Fri, 6 Dec 2013 21:18:26 -0800 Subject: [PATCH] Fix a stupid mistake in the headless timeout. Although, still need to figure out why it gets corrupted. --- headless/Headless.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/headless/Headless.cpp b/headless/Headless.cpp index 5f070b2334..17102e430f 100644 --- a/headless/Headless.cpp +++ b/headless/Headless.cpp @@ -146,7 +146,8 @@ bool RunAutoTest(HeadlessHost *headlessHost, CoreParameter &coreParameter, bool bool passed = true; // TODO: We must have some kind of stack overflow or we're not following the ABI right. // This gets trashed if it's not static. - static double deadline = time_now() + timeout; + static double deadline; + deadline = time_now() + timeout; coreState = CORE_RUNNING; while (coreState == CORE_RUNNING)