Fix initialisation error

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@27106 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Richard Frith-MacDonald 2008-11-21 08:47:22 +00:00
parent b7b3ed920e
commit 9abe5c934c

View file

@ -2329,7 +2329,8 @@ static void retEncoder (DOContext *ctxt)
GSIMapNode node;
[rmc decodeValueOfObjCType: @encode(int) at: &sequence];
if (type == ROOTPROXY_REPLY && sequence == _lastKeepalive)
if (type == ROOTPROXY_REPLY
&& _lastKeepalive != 0 && sequence == _lastKeepalive)
{
_lastKeepalive = 0;
NSDebugMLLog(@"NSConnection", @"Handled keepalive %d on %@",