Style fixes

This commit is contained in:
Martin Hurton
2012-10-30 12:18:13 +01:00
parent abbe34cdc2
commit 9d8eb1f9b9
11 changed files with 99 additions and 112 deletions

View File

@@ -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 ();
}