Skip to content

Commit

Permalink
connecting the connection before starting the runner
Browse files Browse the repository at this point in the history
  • Loading branch information
belaban committed May 23, 2011
1 parent f8a743b commit 492a6dc
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/org/jgroups/client/StompConnection.java
Expand Up @@ -382,6 +382,11 @@ public void onInfo(Map<String, String> information) {
System.out.println("<< INFO: " + information);
}
});

if(!conn.isConnected()) {
conn.setupConnection();
}

conn.connect();

while(conn.isConnected()) {
Expand Down

0 comments on commit 492a6dc

Please sign in to comment.