Project

General

Profile

Bug #1955

removeRegisteredPrefix does not seem to work as expected

Added by Zhehao Wang almost 6 years ago. Updated almost 6 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Start date:
08/30/2014
Due date:
% Done:

0%

Estimated time:

Description

For other libraries,
prefixId = face.registerPrefix(prefix, onInterest, onRegisterFailed)
face.removeRegisteredPrefix(prefixId)
Should be able to remove the registered prefix from local registeredPrefixTable, but for PyNDN2, returned prefixId is none-type.

Adding "return" at face.py, line 286(https://github.com/named-data/PyNDN2/blob/master/python/pyndn/face.py#L286) fixes it...

#1

Updated by Jeff Thompson almost 6 years ago

  • Status changed from New to Closed
  • Assignee set to Jeff Thompson

Good catch. Thanks. I pushed the fix.

Also available in: Atom PDF