mirror of
				https://github.com/subsurface/subsurface.git
				synced 2025-02-19 22:16:15 +00:00 
			
		
		
		
	mobile: make cloud timeouts more consistent
In the mobile version we should always allow a little more wait time for the cloud server - there just seem to be more issues with response times on mobile devices, especially when in places with poor data reception (which isn't uncommon for dive sites). Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
		
							parent
							
								
									3faff0b7f0
								
							
						
					
					
						commit
						454207cd80
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		| 
						 | 
				
			
			@ -692,7 +692,7 @@ bool QMLManager::verifyCredentials(QString email, QString password, QString pin)
 | 
			
		|||
	QEventLoop loop;
 | 
			
		||||
	connect(csa, &CloudStorageAuthenticate::finishedAuthenticate, &loop, &QEventLoop::quit);
 | 
			
		||||
	connect(&myTimer, &QTimer::timeout, &loop, &QEventLoop::quit);
 | 
			
		||||
	myTimer.start(5000);
 | 
			
		||||
	myTimer.start(prefs.cloud_timeout * 1000);
 | 
			
		||||
	loop.exec();
 | 
			
		||||
	if (!myTimer.isActive()) {
 | 
			
		||||
		// got no response from the server
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue