Changeset View
Changeset View
Standalone View
Standalone View
src/org/kde/kdeconnect/Plugins/SharePlugin/ReceiveFileRunnable.java
Show First 20 Lines • Show All 75 Lines • ▼ Show 20 Line(s) | 47 | try { | |||
---|---|---|---|---|---|
76 | } | 76 | } | ||
77 | 77 | | |||
78 | handler.post(() -> callBack.onSuccess(info)); | 78 | handler.post(() -> callBack.onSuccess(info)); | ||
79 | } catch (IOException e) { | 79 | } catch (IOException e) { | ||
80 | handler.post(() -> callBack.onError(info, e)); | 80 | handler.post(() -> callBack.onError(info, e)); | ||
81 | } finally { | 81 | } finally { | ||
82 | try { | 82 | try { | ||
83 | info.inputStream.close(); | 83 | info.inputStream.close(); | ||
84 | } catch (IOException e) { | 84 | } catch (IOException ignored) {} | ||
85 | } | 85 | try { | ||
86 | info.inputSocket.close(); | ||||
87 | } catch (IOException ignored) {} | ||||
86 | try { | 88 | try { | ||
87 | info.outputStream.close(); | 89 | info.outputStream.close(); | ||
88 | } catch (IOException e) { | 90 | } catch (IOException ignored) {} | ||
89 | } | | |||
90 | } | 91 | } | ||
91 | } | 92 | } | ||
92 | } | 93 | } |