Преглед на файлове

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

(cherry picked from commit db8f664aa72a4fabc9a5f5c4b06d629fd4c8946a)
Daniel-Constantin Mierla преди 7 години
родител
ревизия
4bd4c8b827
променени са 1 файла, в които са добавени 2 реда и са изтрити 0 реда
  1. 2 0
      src/modules/pua_usrloc/ul_publish.c

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

@@ -208,6 +208,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;