summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorYorhel <git@yorhel.nl>2019-05-28 07:41:51 +0200
committerYorhel <git@yorhel.nl>2019-05-28 07:41:51 +0200
commit64babc40ecbf6ef2417235b1cf02a355b2706120 (patch)
treec868551bc387c25bc98c67f9682d081ba69eb624 /src
parentd4d0f35b057ce3095581830a6d2c61156b5f210d (diff)
cc.c: Fixup setting of cc->token
I broke this in 7ba4ec464a7c857913858778f50ef86c977284a4 Fixes #97
Diffstat (limited to 'src')
-rw-r--r--src/cc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cc.c b/src/cc.c
index c56c86f..4af08b8 100644
--- a/src/cc.c
+++ b/src/cc.c
@@ -904,8 +904,8 @@ static void adc_handle(net_t *net, char *msg, int _len) {
} else {
cc->cid = g_strdup(id);
if(cc->active) {
- cc_expect_adc_rm(cc, 0);
cc->token = g_strdup(token);
+ cc_expect_adc_rm(cc, 0);
}
hub_user_t *u = cc->uid ? g_hash_table_lookup(hub_uids, &cc->uid) : NULL;
if(!u) {