mirror of
https://github.com/KDE/kdeconnect-android
synced 2025-08-30 13:47:41 +00:00
Handle SocketTimeoutException when sending a payload
This means that the whole packet queue was 10 seconds blocked (!) which I think we shouldn't let happen, but for now I've added this error message.
This commit is contained in:
@@ -205,6 +205,8 @@ public class LanLink extends BaseLink {
|
||||
// If we could distinguish different cases we could react differently for some of them, but I haven't found how.
|
||||
Log.e("sendPacket","Payload SSLSocket failed");
|
||||
e.printStackTrace();
|
||||
} catch(SocketTimeoutException e) {
|
||||
Log.e("LanLink", "Socket for payload in packet " + np.getType() + " timed out. The other end didn't fetch the payload.");
|
||||
} finally {
|
||||
try { server.close(); } catch (Exception ignored) { }
|
||||
try { payloadSocket.close(); } catch (Exception ignored) { }
|
||||
|
Reference in New Issue
Block a user