- Replace direct cleanup calls in the Close method with a sync.Once mechanism to guarantee that cleanup runs only once. - Remove the cleanup method and integrate its functionality into the Close method, streamlining resource management. - Update the serve method to call Close for cleanup, enhancing clarity and consistency in session termination. |
||
|---|---|---|
| .. | ||
| jsonrpc_test.go | ||
| manager.go | ||
| manager_test.go | ||
| session.go | ||
| session_test.go | ||
| types.go | ||