diff options
author | Pixel <pixel@nobis-crew.org> | 2012-04-06 13:54:21 -0700 |
---|---|---|
committer | Pixel <pixel@nobis-crew.org> | 2012-04-06 13:54:21 -0700 |
commit | 9509a74f517040e0603e7fb4a950dfbf9b727a4e (patch) | |
tree | 3500571076fbbb61e5977c66d398c56e0595d8d0 /tests | |
parent | b7c4ac9269e8321ac21f068c9238b4619ab6be4d (diff) |
Probably better to move this before even creating the action that might trigger it.
Diffstat (limited to 'tests')
-rw-r--r-- | tests/test-Http.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/test-Http.cc b/tests/test-Http.cc index d4848e7..c7ecfee 100644 --- a/tests/test-Http.cc +++ b/tests/test-Http.cc @@ -122,6 +122,8 @@ void MainTask::Do() { Events::Async event; bool stop = false; + waitFor(&event); + HttpServer * s = new HttpServer(); s->registerAction(new TestAction()); s->registerAction(new TestFailure()); @@ -134,8 +136,6 @@ void MainTask::Do() { waitFor(&timeout); yield(); - waitFor(&event); - Events::TaskEvent stopperEvent; Task * stopper = TaskMan::registerTask(new Stopper, &stopperEvent); waitFor(&stopperEvent); |