mirror of
				https://github.com/rad4day/Waybar.git
				synced 2025-11-03 17:22:43 +01:00 
			
		
		
		
	fix(Window): avoid concurrency
This commit is contained in:
		@@ -65,7 +65,7 @@ std::thread waybar::modules::MPD::event_listener() {
 | 
			
		||||
      try {
 | 
			
		||||
        if (connection_ == nullptr) {
 | 
			
		||||
          // Retry periodically if no connection
 | 
			
		||||
          update();
 | 
			
		||||
          dp.emit();
 | 
			
		||||
          std::this_thread::sleep_for(interval_);
 | 
			
		||||
        } else {
 | 
			
		||||
          waitForEvent();
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user