From 54b3ccc86a60ba0f1e7088f433e9d2a027864a73 Mon Sep 17 00:00:00 2001 From: Aaron Jacobs Date: Tue, 5 May 2015 09:58:18 +1000 Subject: [PATCH] commonOp.respond --- fuseops/common_op.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/fuseops/common_op.go b/fuseops/common_op.go index d2ec111..c74ae0f 100644 --- a/fuseops/common_op.go +++ b/fuseops/common_op.go @@ -218,9 +218,6 @@ func (o *commonOp) respondErr(err error) { // // Special case: nil means o.bazilReq.Respond accepts no parameters. func (o *commonOp) respond(resp interface{}) { - // We were successful. - o.report(nil) - // Find the Respond method. v := reflect.ValueOf(o.bazilReq) respond := v.MethodByName("Respond") @@ -232,7 +229,10 @@ func (o *commonOp) respond(resp interface{}) { return } - // Otherwise, pass along the response struct. + // Otherwise, send the response struct to the kernel. o.Logf("-> %v", resp) respond.Call([]reflect.Value{reflect.ValueOf(resp)}) + + // Report back to the connection that we are finished. + o.finish(nil) }