Fix bad migration state that could happen during a device transfer.

This commit is contained in:
Greyson Parrelli
2023-05-05 10:39:55 -04:00
committed by Alex Hart
parent 63ce2de3bf
commit 8c707555f2
13 changed files with 549 additions and 9 deletions

View File

@@ -14,7 +14,6 @@ import java.io.InputStream;
import java.io.OutputStream;
import java.net.ServerSocket;
import java.net.Socket;
import java.util.Arrays;
/**
* Performs the networking setup/tear down for the server. This includes
@@ -110,6 +109,8 @@ final class NetworkServerThread extends Thread {
handler.sendEmptyMessage(NETWORK_CLIENT_DISCONNECTED);
}
}
} catch (RuntimeException e) {
throw e;
} catch (Exception e) {
Log.w(TAG, e);
} finally {