From a3fa0d402c4e2f2f6fb1a71ea4b8511c418d1489 Mon Sep 17 00:00:00 2001 From: ehouse Date: Mon, 28 Dec 2009 00:14:09 +0000 Subject: [PATCH] Don't call getHostAddr until have data to send: it's flat-out wrong on wince, and works better when done later. --- xwords4/wince/cesockwr.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/xwords4/wince/cesockwr.c b/xwords4/wince/cesockwr.c index 3445ee1ad..c0fd91b24 100755 --- a/xwords4/wince/cesockwr.c +++ b/xwords4/wince/cesockwr.c @@ -366,7 +366,11 @@ ce_sockwrap_new( MPFORMAL HWND hWnd, DataRecvProc dataCB, bqInit( &self->queueOut, self->bufOut, sizeof(self->bufOut) ); - getHostAddr( self ); +/* #ifdef _WIN32_WCE */ +/* openNetwork( self ); /\* kicks off connection process *\/ */ +/* #else */ +/* getHostAddr( self ); /\* kicks off connection process *\/ */ +/* #endif */ return self; } /* ce_sockwrap_new */