File tree Expand file tree Collapse file tree 2 files changed +11
-1
lines changed
Expand file tree Collapse file tree 2 files changed +11
-1
lines changed Original file line number Diff line number Diff line change @@ -40,7 +40,6 @@ void TIGER_API::PushClientImpl::connect()
4040 // create a worker thread to perform asynchronous network connections
4141 worker_thread_ = std::shared_ptr<std::thread>(new std::thread ([this ]
4242 {
43-
4443 socket_->connect ();
4544
4645 LOG (INFO) << " io_service run on work thread" ;
Original file line number Diff line number Diff line change @@ -208,6 +208,17 @@ void TIGER_API::PushSocket::close_session()
208208
209209void TIGER_API::PushSocket::send_authentication ()
210210{
211+ if (client_config_.tiger_id .empty ())
212+ {
213+ LOG (ERROR) << " tiger_id is empty" ;
214+ return ;
215+ }
216+ if (client_config_.private_key .empty ())
217+ {
218+ LOG (ERROR) << " private_key is empty" ;
219+ return ;
220+ }
221+
211222 // tiger_id sign by private_key
212223 utility::string_t sign = Utils::get_sign (client_config_.private_key , client_config_.tiger_id );
213224
You can’t perform that action at this time.
0 commit comments