Update functions.cpp

Small fix for Issue #21 [GitHub](https://github.com/ant-lafarge/QtWebsocket/issues/21)