aboutsummaryrefslogtreecommitdiff
path: root/src/core
diff options
context:
space:
mode:
Diffstat (limited to 'src/core')
-rw-r--r--src/core/gnunet-service-core.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/core/gnunet-service-core.c b/src/core/gnunet-service-core.c
index 358ff2535..457d3f39b 100644
--- a/src/core/gnunet-service-core.c
+++ b/src/core/gnunet-service-core.c
@@ -830,7 +830,13 @@ send_to_client (struct Client *client,
830 } 830 }
831 if ( (queue_size >= MAX_CLIENT_QUEUE_SIZE) && 831 if ( (queue_size >= MAX_CLIENT_QUEUE_SIZE) &&
832 (can_drop == GNUNET_YES) ) 832 (can_drop == GNUNET_YES) )
833 return; 833 {
834#if DEBUG_CORE
835 GNUNET_log (GNUNET_ERROR_TYPE_INFO,
836 "Too many messages in queue for the client, dropping the new message.\n");
837#endif
838 return;
839 }
834 840
835 msize = ntohs (msg->size); 841 msize = ntohs (msg->size);
836 e = GNUNET_malloc (sizeof (struct Event) + msize); 842 e = GNUNET_malloc (sizeof (struct Event) + msize);