summaryrefslogtreecommitdiff
path: root/accel-pppd
diff options
context:
space:
mode:
Diffstat (limited to 'accel-pppd')
-rw-r--r--accel-pppd/ctrl/sstp/sstp.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/accel-pppd/ctrl/sstp/sstp.c b/accel-pppd/ctrl/sstp/sstp.c
index f17db43..40c6ad9 100644
--- a/accel-pppd/ctrl/sstp/sstp.c
+++ b/accel-pppd/ctrl/sstp/sstp.c
@@ -2415,12 +2415,12 @@ static int sstp_connect(struct triton_md_handler_t *h)
triton_context_register(&conn->ctx, &conn->ppp.ses);
triton_context_call(&conn->ctx, (triton_event_func)sstp_start, conn);
+ triton_timer_add(&conn->ctx, &conn->timeout_timer, 0);
triton_context_wakeup(&conn->ctx);
- __sync_add_and_fetch(&stat_starting, 1);
triton_event_fire(EV_CTRL_STARTING, &conn->ppp.ses);
- triton_timer_add(&conn->ctx, &conn->timeout_timer, 0);
+ __sync_add_and_fetch(&stat_starting, 1);
}
return 0;