Skip to content
This repository
Browse code

Don't assert has_remote_addr, because can change between fragments.

  • Loading branch information...
commit 815aff9a735623dd05d7eccf9d07089cd19fe318 1 parent bf8a29f
Keith Winstein authored August 15, 2012

Showing 1 changed file with 3 additions and 1 deletion. Show diff stats Hide diff stats

  1. 4  src/network/network.cc
4  src/network/network.cc
@@ -295,7 +295,9 @@ Connection::Connection( const char *key_str, const char *ip, int port ) /* clien
295 295
 
296 296
 void Connection::send( string s )
297 297
 {
298  
-  assert( has_remote_addr );
  298
+  if ( !has_remote_addr ) {
  299
+    return;
  300
+  }
299 301
 
300 302
   Packet px = new_packet( s );
301 303
 

0 notes on commit 815aff9

Please sign in to comment.
Something went wrong with that request. Please try again.