Closed hagna closed 8 years ago
Please review this @rminnich and @sevki
I'm lost -- when did the finalizer get added? I better get back up to speed with ninep :-)
you didn't add that trace change I hope from the earlier PR.
See my note on user of defer, but this is close. Thanks.
The main reason for return in this case is that are done and want to make sure nothing else happens. The only reason for a break would be to do exit processing, but you've covered that with the defer. The combination of return and defer is a lot more reliable than break and exit processing.
I think you need to gofmt -w this file and then we're good to go. Thanks.
This adds the serverprofile option.
endSrvProfile could also be called from a finalizer for Server if you want.