mirror of
https://github.com/Telecominfraproject/wlan-cloud-ucentralgw.git
synced 2025-11-02 03:37:57 +00:00
Signed-off-by: stephb9959 <stephane.bourque@gmail.com>
This commit is contained in:
@@ -287,6 +287,12 @@ namespace OpenWifi {
|
||||
Reactor_.addEventHandler(
|
||||
*Connection->DeviceSocket_, Poco::NObserver<RTTYS_server, Poco::Net::ErrorNotification>(
|
||||
*this, &RTTYS_server::onDeviceSocketError));
|
||||
|
||||
// If Connection->WS is set, then login.
|
||||
if(Connection->WSSocket_!= nullptr) {
|
||||
Connection->Login();
|
||||
}
|
||||
|
||||
return true;
|
||||
} catch (...) {
|
||||
good = false;
|
||||
@@ -608,6 +614,9 @@ namespace OpenWifi {
|
||||
Reactor_.addEventHandler(
|
||||
*Session->second->WSSocket_, Poco::NObserver<RTTYS_server, Poco::Net::ShutdownNotification>(
|
||||
*this, &RTTYS_server::onClientSocketShutdown));
|
||||
if(Session->second->DeviceSocket_!= nullptr) {
|
||||
Session->second->Login();
|
||||
}
|
||||
|
||||
} catch (const Poco::Exception &E) {
|
||||
|
||||
|
||||
Reference in New Issue
Block a user