Navigation


Changeset 1385:4968bc47a1a5 in freeDiameter for libfdproto


Ignore:
Timestamp:
Jul 22, 2019, 9:12:44 PM (5 years ago)
Author:
Thomas Klausner <tk@giga.or.at>
Branch:
default
Phase:
public
Message:

fd_fifo_getstats: it is not an error if a queue does not exist

This happens e.g. when peers disappear or during shutdown.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • libfdproto/fifo.c

    r1384 r1385  
    294294        TRACE_ENTRY( "%p %p %p %p %p %p %p %p", queue, current_count, limit_count, highest_count, total_count, total, blocking, last);
    295295
     296        if (queue == NULL) {
     297                /* It is not an error if the queue is not available; happens e.g. when peers disappear */
     298                return 0;
     299        }
     300
    296301        /* Check the parameters */
    297302        CHECK_PARAMS( CHECK_FIFO( queue ) );
Note: See TracChangeset for help on using the changeset viewer.