IPC: fix the connection state checking
IPC: fix the connection state checking

gao-yan/libqb,rubenk/libqb,rubenk/libqb,ClusterLabs/libqb,gao-yan/libqb,ClusterLabs/libqb,kgaillot/libqb,ClusterLabs/libqb,davidvossel/libqb,davidvossel/libqb,kgaillot/libqb,kgaillot/libqb