temp fix
This commit is contained in:
		
				
					committed by
					
						 Steffen Schröder
						Steffen Schröder
					
				
			
			
				
	
			
			
			
						parent
						
							7006c4c8db
						
					
				
				
					commit
					3ad6c773a3
				
			| @@ -194,14 +194,14 @@ class PlayerActions { | |||||||
| 			try { | 			try { | ||||||
| 				$this->maniaControl->client->spectatorReleasePlayerSlot($target->login); | 				$this->maniaControl->client->spectatorReleasePlayerSlot($target->login); | ||||||
| 			} catch(Exception $e) { | 			} catch(Exception $e) { | ||||||
| 				if ($e->getMessage() == 'The player is not a spectator') { | 				//if ($e->getMessage() == 'The player is not a spectator') { | ||||||
| 					$this->kickPlayer($adminLogin, $targetLogin, 'Disconnect'); | 					//$this->kickPlayer($adminLogin, $targetLogin, 'Disconnect'); | ||||||
| 					$this->maniaControl->errorHandler->triggerDebugNotice("inaktiv spec player kicked " . $e->getMessage()); | 					//$this->maniaControl->errorHandler->triggerDebugNotice("inaktiv spec player kicked " . $e->getMessage()); | ||||||
| 				} else { | 				//} else { | ||||||
| 					$this->maniaControl->errorHandler->triggerDebugNotice("PlayerActions Debug Line 183: " . $e->getMessage()); | 					$this->maniaControl->errorHandler->triggerDebugNotice("PlayerActions Debug Line 183: " . $e->getMessage()); | ||||||
| 					// TODO: only possible valid exception should be "wrong login" - throw others (like connection error) | 					// TODO: only possible valid exception should be "wrong login" - throw others (like connection error) | ||||||
| 					//do nothing | 					//do nothing | ||||||
| 				} | 				//} | ||||||
| 			} | 			} | ||||||
| 		} | 		} | ||||||
| 	} | 	} | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user