🔧 Hold tråden i gang
Co-authored-by: Markus A. R. Johansen <markus.aleksander.rakil.johansen@nav.no> Co-authored-by: Amalie Erdal Mansåker <amalie.erdal.mansaker@nav.no> Co-authored-by: Helene Arnesen <helene.arnesen@nav.no> Co-authored-by: Øydis Kind Refsum <oydis.kind.refsum@nav.no> Co-authored-by: Christian Bülow Skovborg <christian.bulow.skovborg@nav.no>
This commit is contained in:
		
							parent
							
								
									d671beda1d
								
							
						
					
					
						commit
						a5d0e0d369
					
				
					 1 changed files with 1 additions and 2 deletions
				
			
		|  | @ -13,9 +13,8 @@ fun main() { | |||
| 
 | ||||
| class Application(private val db: Database) { | ||||
|     fun startBlocking() { | ||||
| 
 | ||||
|         runBlocking { | ||||
|             configureRouting().start(wait = false) | ||||
|             configureRouting().start(wait = true) | ||||
|             Runtime.getRuntime().addShutdownHook( | ||||
|                 Thread { | ||||
|                     db.dataSource.close() | ||||
|  |  | |||
		Reference in a new issue
	
	 Sindre Kjelsrud
						Sindre Kjelsrud