mirror of
https://github.com/f-droid/fdroidclient.git
synced 2026-05-19 05:55:04 -04:00
Cleanup looper after shutting down.
This commit is contained in:
@@ -69,6 +69,12 @@ public class WifiSwap extends SwapType {
|
||||
Log.i(TAG, "we've been asked to stop the webserver: " + msg.obj);
|
||||
setConnected(false);
|
||||
localHttpd.stop();
|
||||
Looper looper = Looper.myLooper();
|
||||
if (looper == null) {
|
||||
Log.e(TAG, "Looper.myLooper() was null for sum reason while shutting down the swap webserver.");
|
||||
} else {
|
||||
looper.quit();
|
||||
}
|
||||
}
|
||||
};
|
||||
try {
|
||||
|
||||
Reference in New Issue
Block a user