summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Cady <d@jerkface.net>2020-08-20 06:41:38 -0400
committerAndrew Cady <d@jerkface.net>2020-08-20 06:41:38 -0400
commitde62d93767d02a6c4768936670b668eca5f3fafe (patch)
tree7e3ce90250de966071d666eadebaed404f3d0268
parentc72d70950d02fc2e4c709b672e89b25765aa0986 (diff)
remove unused variable
-rw-r--r--main.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/main.c b/main.c
index 51043d5..f9153c7 100644
--- a/main.c
+++ b/main.c
@@ -953,7 +953,6 @@ int do_server_loop()
953 953
954 while(1) 954 while(1)
955 { 955 {
956 TOX_CONNECTION tmp_isconnected = 0;
957 uint32_t tox_do_interval_ms; 956 uint32_t tox_do_interval_ms;
958 int select_rv = 0; 957 int select_rv = 0;
959 sent_data = 0; 958 sent_data = 0;
@@ -969,10 +968,9 @@ int do_server_loop()
969 gettimeofday(&tv_start, NULL); 968 gettimeofday(&tv_start, NULL);
970 969
971 /* Check change in connection state */ 970 /* Check change in connection state */
972 tmp_isconnected = connection_status; 971 if(connection_status != connected)
973 if(tmp_isconnected != connected)
974 { 972 {
975 connected = tmp_isconnected; 973 connected = connection_status;
976 if(connected) 974 if(connected)
977 { 975 {
978 log_printf(L_DEBUG, "Connected to Tox network\n"); 976 log_printf(L_DEBUG, "Connected to Tox network\n");