diff --git a/src/rpc/virnetclient.c b/src/rpc/virnetclient.c index aa8588b018..44638e2bda 100644 --- a/src/rpc/virnetclient.c +++ b/src/rpc/virnetclient.c @@ -115,7 +115,7 @@ static void virNetClientDispose(void *obj); static int virNetClientOnceInit(void) { - if (!(virNetClientClass = virClassNew(virClassForObject(), + if (!(virNetClientClass = virClassNew(virClassForObjectLockable(), "virNetClient", sizeof(virNetClient), virNetClientDispose)))