Commit 2dc59960 authored by liuxian9's avatar liuxian9
Browse files

Close the socket when distroying the seesion. Forgetting to close it

should be a bug of kinetic-c version 0.12.
parent 4bd8ac51
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -138,6 +138,7 @@ KineticStatus KineticSession_Disconnect(KineticSession * const session)
    }
    
    // Close the connection
    KineticSocket_Close(session->socket);
    Bus_ReleaseSocket(session->messageBus, session->socket, NULL);
    free(session->si);
    session->si = NULL;