1.1 --- a/libfsserver/lib/files/opener_resource.cc Wed May 19 00:01:41 2021 +0200
1.2 +++ b/libfsserver/lib/files/opener_resource.cc Wed May 19 00:38:36 2021 +0200
1.3 @@ -63,17 +63,9 @@
1.4 OpenerContextResource *resource = new OpenerContextResource(this);
1.5
1.6 /* Complete the initialisation and start a server in a new thread.
1.7 - If the thread does not start, the resource should be finalised. */
1.8 -
1.9 - ResourceServer server(resource);
1.10 - long err = server.start_thread();
1.11 + If the thread does not start, the resource will be finalised. */
1.12
1.13 - /* Return the server capability to the caller. */
1.14 -
1.15 - if (!err)
1.16 - *context = server.config()->server;
1.17 -
1.18 - return err;
1.19 + return ResourceServer(resource).start_thread(context);
1.20 }
1.21
1.22 // vim: tabstop=4 expandtab shiftwidth=4