mirror of
				https://github.com/Frooodle/Stirling-PDF.git
				synced 2025-10-25 11:17:28 +02:00 
			
		
		
		
	minor
This commit is contained in:
		
							parent
							
								
									31938b662c
								
							
						
					
					
						commit
						efc07522ab
					
				| @ -31,14 +31,12 @@ public class LibreOfficeListener { | ||||
|     private LibreOfficeListener() {} | ||||
| 
 | ||||
|     private boolean isListenerRunning() { | ||||
|         try { | ||||
|         System.out.println("waiting for listener to start"); | ||||
|         try (Socket socket = new Socket()) { | ||||
|             socket.connect( | ||||
|                     new InetSocketAddress("localhost", 2002), 1000); // Timeout after 1 second | ||||
|             return true; | ||||
|             } | ||||
|         } catch (IOException e) { | ||||
|         } catch (Exception e) { | ||||
|             return false; | ||||
|         } | ||||
|     } | ||||
|  | ||||
		Loading…
	
		Reference in New Issue
	
	Block a user