attempt to fix rpc stream connection

This commit is contained in:
Daniel Larimer 2013-02-24 14:35:55 -05:00
parent 97e45a64ea
commit 324d5643f6
2 changed files with 9 additions and 8 deletions

View file

@ -37,13 +37,14 @@ namespace fc { namespace json {
// std::cerr<<"\n**line size: "<<line.size()<<"\n\n";
// slog( "line size: '%d'", line.size() );
// slog( "%s", line.c_str() );
try {
fc::value v= fc::json::from_string( line );
self.handle_message(v);
} catch (...) {
wlog( "%s", fc::except_str().c_str() );
return;
}
fc::async( [=]() {
try {
fc::value v= fc::json::from_string( line );
self.handle_message(v);
} catch (...) {
wlog( "%s", fc::except_str().c_str() );
}
});
fc::getline( in, line );
}
} catch ( ... ) {

View file

@ -1,3 +1,3 @@
add_subdirectory( libssh2-1.4.2 )
#add_subdirectory( zlib-1.2.7)
add_subdirectory( sigar )
#add_subdirectory( sigar )