attempt to fix rpc stream connection
This commit is contained in:
parent
97e45a64ea
commit
324d5643f6
2 changed files with 9 additions and 8 deletions
|
|
@ -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 ( ... ) {
|
||||
|
|
|
|||
2
vendor/CMakeLists.txt
vendored
2
vendor/CMakeLists.txt
vendored
|
|
@ -1,3 +1,3 @@
|
|||
add_subdirectory( libssh2-1.4.2 )
|
||||
#add_subdirectory( zlib-1.2.7)
|
||||
add_subdirectory( sigar )
|
||||
#add_subdirectory( sigar )
|
||||
|
|
|
|||
Loading…
Reference in a new issue