Skip to content

Commit

Permalink
Bump to 1.1.2 and added a little protection.
Browse files Browse the repository at this point in the history
  • Loading branch information
steely-glint committed Apr 1, 2022
1 parent fa2d371 commit c69931b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<modelVersion>4.0.0</modelVersion>
<groupId>com.ipseorama</groupId>
<artifactId>slice</artifactId>
<version>1.1.1</version>
<version>1.1.2</version>
<packaging>jar</packaging>
<repositories>
<repository>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@ public synchronized void start(Selector s, StunTransactionManager tm) {
_transM = tm;
RTCIceTransport transP = tm.getTransport();
if (transP != null) {
Log.verb("we have a transport to work with");
EventHandler chain = transP.onstatechange;
transP.onstatechange = (data) -> {
if (chain != null) {
Expand All @@ -90,6 +91,8 @@ public synchronized void start(Selector s, StunTransactionManager tm) {
break;
}
};
} else {
throw new java.lang.IllegalStateException("Ice engine must have a transport");
}

if ((_selector == null) || (_transM == null)) {
Expand Down

0 comments on commit c69931b

Please sign in to comment.