From cd9eea665b504a38238ab1ddf1bbeae89d2c1637 Mon Sep 17 00:00:00 2001 From: Eric House Date: Wed, 7 Aug 2013 21:36:06 -0700 Subject: [PATCH] oops: still need to register device connecting via tcp so gcm sends can work. --- xwords4/relay/cref.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/xwords4/relay/cref.cpp b/xwords4/relay/cref.cpp index 884108f50..a27a1ce32 100644 --- a/xwords4/relay/cref.cpp +++ b/xwords4/relay/cref.cpp @@ -917,12 +917,14 @@ CookieRef::increasePlayerCounts( CRefEvent* evt, bool reconn, HostID* hidp, } const AddrInfo* addr = &evt->addr; - if ( !!devIDp && addr->isUDP() ) { + if ( !!devIDp ) { DevIDType devIDType = evt->u.con.devID->m_devIDType; // does client support devID if ( ID_TYPE_NONE != devIDType ) { devID = DBMgr::Get()->RegisterDevice( evt->u.con.devID ); - DevMgr::Get()->Remember( devID, addr ); + if ( addr->isUDP() ) { + DevMgr::Get()->Remember( devID, addr ); + } } *devIDp = devID; }