catch OOM errors during scanning

This commit is contained in:
Michael Peter Christen 2012-02-24 02:15:27 +01:00
parent 8bfc987374
commit 665626a51b

View File

@ -281,6 +281,7 @@ public class Scanner extends Thread {
if (access != Access.unknown) Scanner.this.services.put(this.service, access); if (access != Access.unknown) Scanner.this.services.put(this.service, access);
} }
} catch (final ExecutionException e) { } catch (final ExecutionException e) {
} catch (final OutOfMemoryError e) {
} }
final Object r = Scanner.this.runner.remove(this); final Object r = Scanner.this.runner.remove(this);
assert r != null; assert r != null;