Fix shm crash if client is being removed
authorDaniel M. Weeks <dan@danweeks.net>
Thu, 11 Jun 2015 15:44:33 +0000 (11:44 -0400)
committerDaniel M. Weeks <dan@danweeks.net>
Thu, 11 Jun 2015 15:47:26 +0000 (11:47 -0400)
src/sharedmemory.c

index a3c4cf267f5c9a03d041c3a253d37a8da5ab8b33..67c9fa5c30335d2c0c62a9bd102aa1a3e376e2e7 100644 (file)
@@ -63,7 +63,7 @@ void Sharedmemory_update(void)
                Timer_init( &now );
                while( Client_iterate(&client_itr) != NULL )
                {
-                       if( client_itr->authenticated )
+                       if( client_itr->authenticated && !client_itr->shutdown_wait )
                        {
                                channel_t *channel = client_itr->channel;