Browse Source

pua_usrloc: no publish requests at shutdown time

- operations are useless, being related to db operations
- safer for races between modules during cleanup, reported by GH #1287
Daniel-Constantin Mierla 7 năm trước cách đây
mục cha
commit
db8f664aa7
1 tập tin đã thay đổi với 2 bổ sung0 xóa
  1. 2 0
      src/modules/pua_usrloc/ul_publish.c

+ 2 - 0
src/modules/pua_usrloc/ul_publish.c

@@ -211,6 +211,8 @@ void ul_publish(ucontact_t* c, int type, void* param)
 	str content_type;
 	int error;
 
+	if(destroy_modules_phase()) return;
+
 	content_type.s= "application/pidf+xml";
 	content_type.len= 20;