scanner.init() is now done in the main thread

git-svn-id: https://ipscan.svn.sourceforge.net/svnroot/ipscan/trunk@125 375186e5-ef17-0410-b0b6-91563547dcda
This commit is contained in:
angryziber 2007-05-31 19:45:05 +00:00
parent 9afd1a6782
commit 91013d1446

View File

@ -37,13 +37,14 @@ public class ScannerThread extends Thread {
this.feeder = feeder;
this.scanner = scanner;
this.scanningResultList = scanningResults;
// initialize in the main thread in order to catch exceptions gracefully
scanner.init();
}
public void run() {
changeStatus(ScanningStateCallback.STATE_SCANNING);
scanner.init();
while(feeder.hasNext() && state == ScanningStateCallback.STATE_SCANNING) {
try {