Update listener.cpp