Set connected status after disconnecting from wifi swap.
This commit is contained in:
parent
2ed6110ae5
commit
1505d21781
@ -110,7 +110,13 @@ public class WifiSwap extends SwapType {
|
|||||||
msg.obj = webServerThreadHandler.getLooper().getThread().getName() + " says stop";
|
msg.obj = webServerThreadHandler.getLooper().getThread().getName() + " says stop";
|
||||||
webServerThreadHandler.sendMessage(msg);
|
webServerThreadHandler.sendMessage(msg);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Stop the Bonjour stuff after asking the webserver to stop. This is not required in this
|
||||||
|
// order, but it helps. In practice, the Bonjour stuff takes a second or two to stop. This
|
||||||
|
// should give enough time for the message we posted above to reach the web server thread
|
||||||
|
// and for the webserver to thus be stopped.
|
||||||
bonjourBroadcast.stop();
|
bonjourBroadcast.stop();
|
||||||
|
setConnected(false);
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user