mirror of
				https://github.com/ciphervance/supercell-wx.git
				synced 2025-10-31 10:30:06 +00:00 
			
		
		
		
	Don't destroy PlacefileLayer or PlacefileManager until background tasks have completed
This commit is contained in:
		
							parent
							
								
									47c1bce993
								
							
						
					
					
						commit
						827a0eacf5
					
				
					 2 changed files with 2 additions and 2 deletions
				
			
		|  | @ -45,7 +45,7 @@ public: | ||||||
|    class PlacefileRecord; |    class PlacefileRecord; | ||||||
| 
 | 
 | ||||||
|    explicit Impl(PlacefileManager* self) : self_ {self} {} |    explicit Impl(PlacefileManager* self) : self_ {self} {} | ||||||
|    ~Impl() {} |    ~Impl() { threadPool_.join(); } | ||||||
| 
 | 
 | ||||||
|    void InitializePlacefileSettings(); |    void InitializePlacefileSettings(); | ||||||
|    void ReadPlacefileSettings(); |    void ReadPlacefileSettings(); | ||||||
|  |  | ||||||
|  | @ -42,7 +42,7 @@ public: | ||||||
|    { |    { | ||||||
|       ConnectSignals(); |       ConnectSignals(); | ||||||
|    } |    } | ||||||
|    ~Impl() = default; |    ~Impl() { threadPool_.join(); } | ||||||
| 
 | 
 | ||||||
|    void ConnectSignals(); |    void ConnectSignals(); | ||||||
| 
 | 
 | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Dan Paulat
						Dan Paulat