summaryrefslogtreecommitdiff
path: root/src/crawl/crawl.cpp
diff options
context:
space:
mode:
authorAndreas Baumann <mail@andreasbaumann.cc>2014-10-09 08:59:02 +0200
committerAndreas Baumann <mail@andreasbaumann.cc>2014-10-09 08:59:02 +0200
commit7d8b1ff684b412da292e0fc734748975188a0f10 (patch)
tree2673e3da51cc80bfc38a426048b30a4d71c31d4c /src/crawl/crawl.cpp
parent62c5bb90525baf0d82c23892c2666f611750d63c (diff)
downloadcrawler-7d8b1ff684b412da292e0fc734748975188a0f10.tar.gz
crawler-7d8b1ff684b412da292e0fc734748975188a0f10.tar.bz2
first trials with a Google normalizer called from Lua, std::string is the problem currently
and the missing wrapper for the URL class also added a local 'tolua', we will have to hack it
Diffstat (limited to 'src/crawl/crawl.cpp')
-rwxr-xr-xsrc/crawl/crawl.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/crawl/crawl.cpp b/src/crawl/crawl.cpp
index 14a02dd..08d3dbf 100755
--- a/src/crawl/crawl.cpp
+++ b/src/crawl/crawl.cpp
@@ -66,7 +66,7 @@ int main( int /* argc */, char *argv[] )
Logger::instance( ).openConsoleLog( logDEBUG );
luaVm.loadSource( argv[1] );
- luaVm.executeMain( );
+ //luaVm.executeMain( );
#ifndef _WIN32
struct sigaction sa;
@@ -254,7 +254,7 @@ int main( int /* argc */, char *argv[] )
//~ sleep( 2 );
counter++;
- if( counter > 10 ) {
+ if( counter > 0 ) {
term = true;
}
#else
@@ -281,7 +281,8 @@ int main( int /* argc */, char *argv[] )
LOG( logNOTICE ) << "Crawler stopped.. normal shutdown..";
- luaVm.dumpState( );
+ luaVm.executeMain( );
+ //luaVm.dumpState( );
return 0;
} catch( exception &e ) {