linux hangs when closing
This commit is contained in:
		@@ -243,9 +243,15 @@ namespace ix
 | 
				
			|||||||
                }
 | 
					                }
 | 
				
			||||||
                else if (pollResult == PollResultType_CloseRequest)
 | 
					                else if (pollResult == PollResultType_CloseRequest)
 | 
				
			||||||
                {
 | 
					                {
 | 
				
			||||||
                    ;
 | 
					                    _socket->close();
 | 
				
			||||||
                }
 | 
					                }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					                // Avoid a race condition where we get stuck in select
 | 
				
			||||||
 | 
					                // while closing.
 | 
				
			||||||
 | 
					                if (_readyState == CLOSING)
 | 
				
			||||||
 | 
					                {
 | 
				
			||||||
 | 
					                    _socket->close();
 | 
				
			||||||
 | 
					                }
 | 
				
			||||||
            },
 | 
					            },
 | 
				
			||||||
            _heartBeatPeriod);
 | 
					            _heartBeatPeriod);
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user