• Yossi Gottlieb's avatar
    Fix CLIENT UNBLOCK crashing modules. (#9167) · aa139e2f
    Yossi Gottlieb authored
    Modules that use background threads with thread safe contexts are likely
    to use RM_BlockClient() without a timeout function, because they do not
    set up a timeout.
    
    Before this commit, `CLIENT UNBLOCK` would result with a crash as the
    `NULL` timeout callback is called. Beyond just crashing, this is also
    logically wrong as it may throw the module into an unexpected client
    state.
    
    This commits makes `CLIENT UNBLOCK` on such clients behave the same as
    any other client that is not in a blocked state and therefore cannot be
    unblocked.
    aa139e2f
networking.c 140 KB