• R
    Simplify cleanup · bfb86ca2
    Romain Vimont 提交于
    The cleanup is not linear: for example, the server must be stopped and
    its sockets must be shutdown after the stream and controller are stopped
    (so that they don't continue processing garbage), but before they are
    joined, to avoid a deadlock if they are blocked on a socket read.
    
    Simplify the spaghetti-cleanup by keeping trace of initialization at
    runtime.
    bfb86ca2
scrcpy.c 12.1 KB