mirror of
https://github.com/zeromq/libzmq.git
synced 2025-10-23 00:08:02 +02:00
Style fixes
This commit is contained in:
@@ -120,10 +120,10 @@ zmq::session_base_t::session_base_t (class io_thread_t *io_thread_,
|
||||
identity_received (false),
|
||||
addr (addr_)
|
||||
{
|
||||
// identities are not exchanged for raw sockets
|
||||
if(options.raw_sock){
|
||||
identity_sent = (true);
|
||||
identity_received = (true);
|
||||
// Identities are not exchanged for raw sockets
|
||||
if (options.raw_sock) {
|
||||
identity_sent = true;
|
||||
identity_received = true;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -250,12 +250,12 @@ void zmq::session_base_t::terminated (pipe_t *pipe_)
|
||||
// Remove the pipe from the detached pipes set
|
||||
terminating_pipes.erase (pipe_);
|
||||
|
||||
if (!is_terminating() && options.raw_sock){
|
||||
if(engine){
|
||||
if (!is_terminating () && options.raw_sock) {
|
||||
if (engine) {
|
||||
engine->terminate ();
|
||||
engine = NULL;
|
||||
}
|
||||
terminate();
|
||||
terminate ();
|
||||
}
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user