mirror of
				https://github.com/swaywm/sway.git
				synced 2025-11-03 09:01:43 -05:00 
			
		
		
		
	Merge pull request #1316 from 4e554c4c/swaybar_crash
Prevent crash if DBus connection is NULL
This commit is contained in:
		
						commit
						1b9ee85bc5
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		| 
						 | 
					@ -138,7 +138,7 @@ static void dispatch_status(DBusConnection *connection, DBusDispatchStatus new_s
 | 
				
			||||||
/* Public functions below */
 | 
					/* Public functions below */
 | 
				
			||||||
 | 
					
 | 
				
			||||||
void dispatch_dbus() {
 | 
					void dispatch_dbus() {
 | 
				
			||||||
	if (!should_dispatch) {
 | 
						if (!should_dispatch || !conn) {
 | 
				
			||||||
		return;
 | 
							return;
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue