diff options
author | 2012-08-15 23:56:58 +0300 | |
---|---|---|
committer | 2012-08-15 23:58:21 +0300 | |
commit | 815aff9a735623dd05d7eccf9d07089cd19fe318 (patch) | |
tree | 01ca3bb213056c9527496f6bb5bb2192a768278e | |
parent | bf8a29f783ceab86bac8761099b81d832c7ff68d (diff) |
Don't assert has_remote_addr, because can change between fragments.
-rw-r--r-- | src/network/network.cc | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/network/network.cc b/src/network/network.cc index 907b1d3..aacfb25 100644 --- a/src/network/network.cc +++ b/src/network/network.cc @@ -295,7 +295,9 @@ Connection::Connection( const char *key_str, const char *ip, int port ) /* clien void Connection::send( string s ) { - assert( has_remote_addr ); + if ( !has_remote_addr ) { + return; + } Packet px = new_packet( s ); |