mirror of
https://github.com/angryip/ipscan.git
synced 2025-10-26 11:18:17 +00:00
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:
parent
9afd1a6782
commit
91013d1446
@ -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 {
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user