Commit e7274ac6a3b732ad96d6be03913d9d8ce83f7ce1
1 parent
a4d94745
Exists in
master
and in
5 other branches
Corrigindo erro no reaproveitamento de sessão.
Showing
2 changed files
with
5 additions
and
5 deletions
Show diff stats
src/libpw3270cpp/service.cc
src/libpw3270cpp/testprogram.cc
@@ -78,14 +78,15 @@ | @@ -78,14 +78,15 @@ | ||
78 | 78 | ||
79 | cout << "Conteúdo:" << endl << session->get_contents() << endl; | 79 | cout << "Conteúdo:" << endl << session->get_contents() << endl; |
80 | 80 | ||
81 | - session->disconnect(); | ||
82 | - | ||
83 | delete session; | 81 | delete session; |
84 | 82 | ||
85 | session = session::start(name.c_str()); | 83 | session = session::start(name.c_str()); |
86 | cout << "Restored session: " << name << endl << endl; | 84 | cout << "Restored session: " << name << endl << endl; |
87 | - session->close(); | 85 | + cout << "\tIsConnected: " << session->is_connected() << endl; |
86 | + cout << "\tIsReady: " << session->is_ready() << endl; | ||
88 | 87 | ||
88 | + session->disconnect(); | ||
89 | + session->close(); | ||
89 | delete session; | 90 | delete session; |
90 | 91 | ||
91 | } | 92 | } |