Fix a race condition where pCampbot actions could continue even if a bot had disconnected.
							parent
							
								
									2b069a3b1e
								
							
						
					
					
						commit
						2d315ec207
					
				|  | @ -276,7 +276,7 @@ namespace pCampBot | |||
|         //add additional steps and/or things the bot should do | ||||
|         private void Action() | ||||
|         { | ||||
|             while (ConnectionState != ConnectionState.Disconnecting) | ||||
|             while (ConnectionState == ConnectionState.Connected) | ||||
|             { | ||||
|                 lock (Behaviours) | ||||
|                 { | ||||
|  |  | |||
		Loading…
	
		Reference in New Issue
	
	 Justin Clark-Casey (justincc)
						Justin Clark-Casey (justincc)