Fixed backup router resuming protocol bugs, especially packet
[silc.git] / apps / silcd / server_backup.c
index 88da61f8c36115e9b1da493e83dc27db0c3482ac..a6cfffb65d4ee3c981a64abe89b58a0f193549ef 100644 (file)
@@ -1197,6 +1197,9 @@ SILC_TASK_CALLBACK(silc_server_protocol_backup_done)
     SILC_LOG_ERROR(("Error occurred during backup router resuming protcool"));
   }
 
+  if (server->server_shutdown)
+    return;
+
   /* Remove this protocol from all server entries that has it */
   if (silc_idcache_get_all(server->local_list->servers, &list)) {
     if (silc_idcache_list_first(list, &id_cache)) {