Skip to content

Commit c866d2b

Browse files
committed
potential fix for selector exception in L preview.
koush#196
1 parent 6fa2da4 commit c866d2b

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

AndroidAsync/src/com/koushikdutta/async/AsyncServer.java

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,12 @@ private static void wakeup(final SelectorWrapper selector) {
126126
synchronousWorkers.execute(new Runnable() {
127127
@Override
128128
public void run() {
129-
selector.wakeupOnce();
129+
try {
130+
selector.wakeupOnce();
131+
}
132+
catch (Exception e) {
133+
Log.i(LOGTAG, "Selector Exception? L Preview?");
134+
}
130135
}
131136
});
132137
}

0 commit comments

Comments
 (0)