diff options
-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 |