Skip to content
Snippets Groups Projects
Commit 36887c56 authored by Volker Richert's avatar Volker Richert
Browse files

Timeout exception reading link may cause in an unclosed connection.

parent 055377d2
No related branches found
No related tags found
No related merge requests found
...@@ -237,12 +237,12 @@ public class MedtronicCnlIntentService extends IntentService { ...@@ -237,12 +237,12 @@ public class MedtronicCnlIntentService extends IntentService {
realm.cancelTransaction(); realm.cancelTransaction();
} }
} }
cnlReader.closeConnection();
} catch (UnexpectedMessageException e) { } catch (UnexpectedMessageException e) {
Log.e(TAG, "Unexpected Message", e); Log.e(TAG, "Unexpected Message", e);
sendStatus("Communication Error: " + e.getMessage()); sendStatus("Communication Error: " + e.getMessage());
} finally { } finally {
// FIXME: 05.11.2016 has the close to be here?
cnlReader.closeConnection();
cnlReader.endPassthroughMode(); cnlReader.endPassthroughMode();
cnlReader.endControlMode(); cnlReader.endControlMode();
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment