Commit bccf15b5 authored by Björn Richerzhagen's avatar Björn Richerzhagen
Browse files

Replaced non-error assertion with logger output

parent 6ef17f00
......@@ -260,7 +260,11 @@ public class ModularTransLayer implements SimHostComponent, TransportComponent,
* FIXME add @Override lateron, as soon as the API is updated globally.
*/
public void removeTransportMessageListener() {
assert listener != null;
// assert listener != null;
if (listener == null) {
Monitor.log(ModularTransLayer.class, Level.DEBUG, "Trying tor remove a non-existing transport message listener.");
return;
}
removeTransMsgListener(listener, localPort);
listener = null;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment