Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: move client logic to a function that always return (#262)
This commit fixes a bug in the `main()` that runs `defer client.Kill()` but use `os.Exit()` to finish the program; defer is just executed when a function returns. Because of that, the plugin was never closed. To fix it, I moved the client logic to a separate function that always returns and let the `os.Exit()` for the `main()`. It will guarantee that we will always call the `defer client.Kill()`.
- Loading branch information