peer: fix typo in quota check
Make sure we check the error-code correctly. Right now, we always treat
queue-failure as a quota-error, due to a typo. Thankfully, it is the
only possibility, so there is no harm taken.
@@ -808,7 +808,7 @@ int peer_queue_call(PolicySnapshot *sender_policy, NameSet *sender_names, ReplyO
r = connection_queue(&receiver->connection, sender_user, message);
if (r) {
- if (CONNECTION_E_QUOTA) {
+ if (r == CONNECTION_E_QUOTA) {
if (message->header->type == DBUS_MESSAGE_TYPE_SIGNAL &&
peer_signal_is_solicited(receiver, sender_id, message)) {
connection_shutdown(&receiver->connection);
