Skip to content

Fix issues with RLOGServer #248

Open
Ruthie-FRC wants to merge 4 commits intoMechanical-Advantage:2027from
Ruthie-FRC:2027
Open

Fix issues with RLOGServer #248
Ruthie-FRC wants to merge 4 commits intoMechanical-Advantage:2027from
Ruthie-FRC:2027

Conversation

@Ruthie-FRC
Copy link
Contributor

This pull request updates the RLOGServer class to improve resource management by implementing the AutoCloseable interface, ensuring that server threads and resources can be properly closed. It also updates the copyright year.
resolves #190

Resource management improvements:

  • RLOGServer now implements AutoCloseable, allowing it to be used in try-with-resources statements and ensuring proper cleanup of resources. The end() method now delegates to the new close() method. (akit/src/main/java/org/littletonrobotics/junction/rlog/RLOGServer.java) [1] [2]
  • The inner ServerThread class also implements AutoCloseable, providing a close() method for thread resource management. (akit/src/main/java/org/littletonrobotics/junction/rlog/RLOGServer.java) [1] [2]

Other changes:

  • Updated the copyright year in RLOGServer.java. (akit/src/main/java/org/littletonrobotics/junction/rlog/RLOGServer.java)

@Ruthie-FRC
Copy link
Contributor Author

@jwbonner sorry for the delay, but I believe this resolves the issue that I said I would work on. just tagging you in case you missed this, if you didn't, I'm so sorry to bother you.

@Ruthie-FRC
Copy link
Contributor Author

is this still relevant?

@Ruthie-FRC
Copy link
Contributor Author

#190 this should resolve?

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.

1 participant