diff options
author | Karl Ramm <kcr@1ts.org> | 2009-08-11 17:21:43 +0000 |
---|---|---|
committer | Karl Ramm <kcr@1ts.org> | 2009-08-11 17:21:43 +0000 |
commit | 8d6d9095dde5623663127205db7095f126c23346 (patch) | |
tree | d8776bd7698bce7a617b85e97b45f2b04077e097 /lib | |
parent | e87a188ae0775b248e7d6a9a7b29117363369227 (diff) |
when setting location, wait for SERVACKs _and_ SERVNAKS
Diffstat (limited to 'lib')
-rw-r--r-- | lib/ZLocations.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/ZLocations.c b/lib/ZLocations.c index 3c662e3..db6daa6 100644 --- a/lib/ZLocations.c +++ b/lib/ZLocations.c @@ -99,7 +99,8 @@ ZParseExposureLevel(char *text) static int wait_for_srvack(ZNotice_t *notice, void *uid) { - return (notice->z_kind == SERVACK && ZCompareUID(¬ice->z_uid, (ZUnique_Id_t *)uid)); + return ((notice->z_kind == SERVACK || notice->z_kind == SERVNAK) + && ZCompareUID(¬ice->z_uid, (ZUnique_Id_t *)uid)); } Code_t |