]> git.ipfire.org Git - thirdparty/mtr.git/commitdiff
move net_send_batch call to its caller
authorAaron Lipinski <aaron.lipinski@roboticsplus.co.nz>
Sat, 3 Apr 2021 02:00:45 +0000 (15:00 +1300)
committerAaron Lipinski <aaron.lipinski@roboticsplus.co.nz>
Sat, 3 Apr 2021 02:08:07 +0000 (15:08 +1300)
ui/gtk.c
ui/net.c

index dd79efc835a9eed8fac881de149f2653343705e8..0fd8339ec4e523d649b5f141b6bd8cdc939e286b 100644 (file)
--- a/ui/gtk.c
+++ b/ui/gtk.c
@@ -249,6 +249,7 @@ static gint Host_activate(
     addr = dns_forward(gtk_entry_get_text(GTK_ENTRY(entry)));
     if (addr) {
         net_reopen(ctl, addr);
+        net_send_batch(ctl);
         /* If we are "Paused" at this point it is usually because someone
            entered a non-existing host. Therefore do the go-ahead... */
         gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(Pause_Button), 0);
index e4752b730359ccd2ed250f70ffc614821c5587a8..31601950ab4d908d8ea6cb4bc1e5cce02bab5cc2 100644 (file)
--- a/ui/net.c
+++ b/ui/net.c
@@ -785,7 +785,6 @@ void net_reopen(
     memcpy(remoteaddress, addr->h_addr, sockaddr_addr_size(remotesockaddr));
     memcpy(sockaddr_addr_offset(remotesockaddr), addr->h_addr, sockaddr_addr_size(remotesockaddr));
     net_reset(ctl);
-    net_send_batch(ctl);
 }