public void reconnect()
	{
		// Socket/RTMP reconnect
		super.reconnect();

		// Then login
		while (!isLoggedIn())
		{
			try
			{
				login();
			}
			catch (IOException e)
			{
				System.err.println("Error when reconnecting: ");
				e.printStackTrace(); // For debug purposes

				sleep(5000);
				super.reconnect(); // Need to reconnect again here
			}
		} 
	}