MazWoz / jsmpp

Automatically exported from code.google.com/p/jsmpp
Apache License 2.0
0 stars 0 forks source link

Incorrect State in Exception for waitForBind(long timeout) #9

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Send Bind request, when Session State is other than SessionState.OPEN

What is the expected output? What do you see instead?
Current state should be displayed in the Exception. Currently, it always 
show actual state as SessionState.OPEN

What version of the product are you using? On what operating system?
From trunk

Please provide any additional information below.
This is possibly coz of a typo on line 
throw new IllegalStateException("waitForBind() should be invoked on OPEN 
state, actual state is " + SessionState.OPEN);

The line should be
throw new IllegalStateException("waitForBind() should be invoked on OPEN 
state, actual state is " + getSessionState());

Original issue reported on code.google.com by paliwala...@gmail.com on 21 Nov 2008 at 2:00

GoogleCodeExporter commented 8 years ago
Thanks, I already fixed.

Original comment by uuda...@gmail.com on 23 Nov 2008 at 12:45