File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed
src/main/scala/com/github/yruslan/channel Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -197,7 +197,7 @@ abstract class Channel[T] extends ReadChannel[T] with WriteChannel[T] {
197
197
try {
198
198
cwr.await()
199
199
} catch {
200
- case ex : InterruptedException =>
200
+ case ex : Throwable =>
201
201
writers -= 1
202
202
cwr.signal()
203
203
throw ex
@@ -210,7 +210,7 @@ abstract class Channel[T] extends ReadChannel[T] with WriteChannel[T] {
210
210
try {
211
211
awaiter.await(cwr)
212
212
} catch {
213
- case ex : InterruptedException =>
213
+ case ex : Throwable =>
214
214
writers -= 1
215
215
cwr.signal()
216
216
throw ex
@@ -223,7 +223,7 @@ abstract class Channel[T] extends ReadChannel[T] with WriteChannel[T] {
223
223
try {
224
224
crd.await()
225
225
} catch {
226
- case ex : InterruptedException =>
226
+ case ex : Throwable =>
227
227
readers -= 1
228
228
crd.signal()
229
229
throw ex
@@ -236,7 +236,7 @@ abstract class Channel[T] extends ReadChannel[T] with WriteChannel[T] {
236
236
try {
237
237
awaiter.await(crd)
238
238
} catch {
239
- case ex : InterruptedException =>
239
+ case ex : Throwable =>
240
240
readers -= 1
241
241
crd.signal()
242
242
throw ex
@@ -369,7 +369,7 @@ object Channel {
369
369
true
370
370
}
371
371
} catch {
372
- case ex : InterruptedException =>
372
+ case ex : Throwable =>
373
373
removeWaiters(sem, sel, sel.length)
374
374
throw ex
375
375
}
You can’t perform that action at this time.
0 commit comments