client: unbreak SET_KEY and DELETE_KEY
In 70bcea3, I introduced incorrect handling of SET_KEY and DELETE_KEY, leading to error on each connection. Fix this by negating the condition.
This commit is contained in:
parent
e6a7dca881
commit
fc9e038f3f
@ -251,11 +251,11 @@ void sync_update(struct sync_device *d, double row)
|
|||||||
|
|
||||||
switch (cmd) {
|
switch (cmd) {
|
||||||
case SET_KEY:
|
case SET_KEY:
|
||||||
if (hanle_set_key_cmd(d->sock, &d->data))
|
if (!hanle_set_key_cmd(d->sock, &d->data))
|
||||||
goto sockerr;
|
goto sockerr;
|
||||||
break;
|
break;
|
||||||
case DELETE_KEY:
|
case DELETE_KEY:
|
||||||
if (hanle_del_key_cmd(d->sock, &d->data))
|
if (!hanle_del_key_cmd(d->sock, &d->data))
|
||||||
goto sockerr;
|
goto sockerr;
|
||||||
break;
|
break;
|
||||||
case SET_ROW:
|
case SET_ROW:
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user