Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed issue where RCON connections will panic #8

Merged
merged 1 commit into from
Aug 19, 2023

Conversation

solidDoWant
Copy link
Contributor

Currently RCON connections will panic because the RCON.rcon field is nil upon call to NewRCON, despite created being set to the current time. Because created is set to the current time, runRCONCommand will not call RCON.Reconnect to establish a connection to the server, resulting a panic due to accessing a nil pointer. This PR sets the initial created time to Unix Epoch time, ensuring that the connection to the RCON server is established.

@galexrt galexrt merged commit 6505c3d into galexrt:main Aug 19, 2023
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants