1
0
Fork 0

ipa: Make the IPADispatcher automatically initialize the object

Update the code.
This commit is contained in:
Holger Hans Peter Freyther 2012-07-28 19:04:39 +02:00
parent c69c20f9dc
commit 66900c7fe7
2 changed files with 8 additions and 2 deletions

View File

@ -22,8 +22,15 @@ Object subclass: IPADispatcher [
<category: 'OsmoNetwork-IPA'>
<comment: 'I am a hub and one can register handlers for the streams'>
IPADispatcher class >> new [
<category: 'creation'>
^ super new
initialize;
yourself
]
initialize [
<category: 'initialize'>
<category: 'private'>
handlers := Dictionary new.
]

View File

@ -31,7 +31,6 @@ Eval [
muxer := IPAMuxer initOn: socket.
dispatcher := IPADispatcher new.
dispatcher initialize.
ipa := IPAProtoHandler new.
dispatcher addHandler: IPAConstants protocolIPA on: ipa with: #handleMsg:.