r23112: Trim down the message.c API slightly: The messages_pending_for_pid is now
[sfrench/samba-autobuild/.git] / source / printing / notify.c
index 23cdcc3361e2b31974406766b7b61503630a2abf..3b2271980410ff6c263ead9a014accd10b28fc3a 100644 (file)
@@ -183,16 +183,9 @@ static void print_notify_send_messages_to_printer(struct messaging_context *msg_
        }
 
        for (i = 0; i < num_pids; i++) {
-               unsigned int q_len = messages_pending_for_pid(
-                       msg_ctx, pid_to_procid(pid_list[i]));
-               if (q_len > 1000) {
-                       DEBUG(5, ("print_notify_send_messages_to_printer: discarding notify to printer %s as queue length = %u\n",
-                               printer, q_len ));
-                       continue;
-               }
                messaging_send_buf(msg_ctx,
                                   pid_to_procid(pid_list[i]),
-                                  MSG_PRINTER_NOTIFY2,
+                                  MSG_PRINTER_NOTIFY2 | MSG_FLAG_LOWPRIORITY,
                                   (uint8 *)buf, offset);
 
                if ((timeout != 0) && timeval_expired(&end_time)) {