Closed ovalseven8 closed 5 years ago
Hm, yeah, I think that's missing indeed! Good catch. The variable is only used in ValidationHelper.validateCloseCode
, but it could still potentially result in an exception during teardown of the connection.
You can assign me if you want.
@ovalseven8 if you're up for a pull request, sure! That would be welcome.
Note: Adding a simple regression test for all valid close codes before adding the fix might be a good idea.
I skimmed a little through the code and wonder if
CLOSING_NORMAL
is missing here? However, I am not that familiar with the SaltyRTC protocol.https://github.com/saltyrtc/saltyrtc-client-java/blob/f988042bc5fa2196014ba8a5d6d87104eab24554/src/main/java/org/saltyrtc/client/signaling/CloseCode.java#L90-L94