Skip to content

Commit

Permalink
Fix stop button state
Browse files Browse the repository at this point in the history
  • Loading branch information
Christopher Faulet committed Feb 26, 2014
1 parent c487e95 commit d3f6f8b
Showing 1 changed file with 6 additions and 0 deletions.
Expand Up @@ -240,6 +240,7 @@ public void onFailure(int status_code) {

// Function to deinitialize the realtime session, if needed
private void stopRealtimeSession() {
((Button)findViewById(R.id.stop_button)).setEnabled(false);
if (Session.isInitialized()) {
logInfo("Realtime session deinitializing...");
Session.deinitialize();
Expand Down Expand Up @@ -287,6 +288,11 @@ private void onRealtimeSessionInitialized() {
+ Session.getTcpHeartbeatTimeout() + " msecs\n"
+ " - UDP heartbeat timeout: "
+ Session.getUdpHeartbeatTimeout() + " msecs");

// ################################################################
// THIS SAMPLE ENDS HERE. CHECKOUT 'RealtimeConnectionManagement'
// SAMPLE FOR THE NEXT STEPS.
// ################################################################
}


Expand Down

0 comments on commit d3f6f8b

Please sign in to comment.