From e701d98bd7695bd3f20f0054244d0e7f273488bc Mon Sep 17 00:00:00 2001 From: Tyler Renelle Date: Sat, 11 May 2013 12:32:36 +0100 Subject: [PATCH] make solo-user subscription a callback of unsubscribe --- src/app/index.coffee | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/app/index.coffee b/src/app/index.coffee index ff4c4e59c7..f8177ab6cc 100644 --- a/src/app/index.coffee +++ b/src/app/index.coffee @@ -84,8 +84,8 @@ setupSubscriptions = (page, model, params, next, cb) -> # (1) Solo player unless party.get() - model.unsubscribe partyQ, (-> ) # they didn't have a party, let's not keep that subscription around. Also, async so we don't have to wait - return finished([selfQ, 'tavern'], ['_user', '_tavern']) + # they didn't have a party, let's not keep that subscription around. Also, async so we don't have to wait + return model.unsubscribe partyQ, ->finished([selfQ, 'tavern'], ['_user', '_tavern']) ## (2) Party has members, subscribe to those users too model.ref '_party', party