Comment #9 on issue 2504 by [email protected]: JDiameter: change disconnect-cause
http://code.google.com/p/mobicents/issues/detail?id=2504

Ok no problem but in this case maybe you can consider to remove this part of the destroy method:
 // Be friendly
    if(state == StackState.STARTED) {
log.warn("Calling destroy() with Stack in STARTED state. Calling stop() before, please do it yourself.");
      stop(disconnectCause);
    }

and throws an exception in case where stack is running. If you want that user does the right thing, tell him and don't authorize him to do what he want ;).
What do you think?

Reply via email to